FAQ
Go get was sucks when I wanner delete a package,This one only take charge
for installing,but nothing deal with uninstalling.That feels bad comparing
with other package manager such as npm,pip,cargo and etc.
And further more,I want to know how to list all installed package in my
GOPATH?

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

  • Jan Mercl at Oct 28, 2015 at 1:04 pm

    On Wed, Oct 28, 2015 at 1:39 PM wicast C wrote:

    Go get was sucks when I wanner delete a package,This one only take charge
    for installing,but nothing deal with uninstalling.That feels bad comparing
    with other package manager such as npm,pip,cargo and etc.

             $ rm -rf $GOPATH/src/<import_path>

    This will, however, not remove dependent packages. It's not computable
    which dependent packages are not needed anymore because user can change the
    GOPATH environment at any future time to anything other, including a list
    of paths, and for such new $GOPATH(s) value(s) the "orphaned" packages may
    become "reachable" again.
    And further more,I want to know how to list all installed package in my
    GOPATH?

    For example, using any file manager, point it to $GOPATH/src and browse the
    packages. Or

             $ godoc -http :6060

    and point your web browser to http://localhost:6060/pkg/

    --

    -j

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • wicast C at Oct 29, 2015 at 9:31 am
    在 2015年10月28日星期三 UTC+8下午9:04:37,Jan Mercl写道:
    On Wed, Oct 28, 2015 at 1:39 PM wicast C <game...@gmail.com <javascript:>>
    wrote:
    Go get was sucks when I wanner delete a package,This one only take
    charge for installing,but nothing deal with uninstalling.That feels bad
    comparing with other package manager such as npm,pip,cargo and etc.

    $ rm -rf $GOPATH/src/<import_path>

    This will, however, not remove dependent packages. It's not computable
    which dependent packages are not needed anymore because user can change the
    GOPATH environment at any future time to anything other, including a list
    of paths, and for such new $GOPATH(s) value(s) the "orphaned" packages may
    become "reachable" again.
    And further more,I want to know how to list all installed package in my
    GOPATH?

    For example, using any file manager, point it to $GOPATH/src and browse
    the packages. Or

    $ godoc -http :6060

    and point your web browser to http://localhost:6060/pkg/

    --

    -j
    1.Normally,I won't change my default $GOPATH.Only when I was building some
    special packages.
    2.That's what I wanted.

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Manlio Perillo at Oct 29, 2015 at 2:42 pm
    Il giorno mercoledì 28 ottobre 2015 14:04:37 UTC+1, Jan Mercl ha scritto:
    On Wed, Oct 28, 2015 at 1:39 PM wicast C <game...@gmail.com <javascript:>>
    wrote:
    Go get was sucks when I wanner delete a package,This one only take
    charge for installing,but nothing deal with uninstalling.That feels bad
    comparing with other package manager such as npm,pip,cargo and etc.

    $ rm -rf $GOPATH/src/<import_path>

    This will, however, not remove dependent packages. It's not computable
    which dependent packages are not needed anymore because user can change the
    GOPATH environment at any future time to anything other, including a list
    of paths, and for such new $GOPATH(s) value(s) the "orphaned" packages may
    become "reachable" again.
    Running `go list -f '{{ .ImportPath }} : {{ .Deps }}' ...` will report the
    dependencies of all packages in the GOPATH.
    So with some code you may be able to find packages that can recursively be
    removed.
    This still is not safe. Package manager like apt knows packages that have
    been installed as a dependency and packages that have been explicitly
    installed by the user.
    And further more,I want to know how to list all installed package in my
    GOPATH?

    For example, using any file manager, point it to $GOPATH/src and browse
    the packages. Or

    $ godoc -http :6060

    and point your web browser to http://localhost:6060/pkg/
    Just run `go list ...`


    Regards Manlio

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • wicast C at Oct 31, 2015 at 11:32 am
    在 2015年10月29日星期四 UTC+8下午10:42:18,Manlio Perillo写道:
    Il giorno mercoledì 28 ottobre 2015 14:04:37 UTC+1, Jan Mercl ha scritto:
    On Wed, Oct 28, 2015 at 1:39 PM wicast C wrote:

    Go get was sucks when I wanner delete a package,This one only take
    charge for installing,but nothing deal with uninstalling.That feels bad
    comparing with other package manager such as npm,pip,cargo and etc.

    $ rm -rf $GOPATH/src/<import_path>

    This will, however, not remove dependent packages. It's not computable
    which dependent packages are not needed anymore because user can change the
    GOPATH environment at any future time to anything other, including a list
    of paths, and for such new $GOPATH(s) value(s) the "orphaned" packages may
    become "reachable" again.
    Running `go list -f '{{ .ImportPath }} : {{ .Deps }}' ...` will report the
    dependencies of all packages in the GOPATH.
    So with some code you may be able to find packages that can recursively be
    removed.
    This still is not safe. Package manager like apt knows packages that have
    been installed as a dependency and packages that have been explicitly
    installed by the user.
    And further more,I want to know how to list all installed package in my
    GOPATH?

    For example, using any file manager, point it to $GOPATH/src and browse
    the packages. Or

    $ godoc -http :6060

    and point your web browser to http://localhost:6060/pkg/
    Just run `go list ...`


    Regards Manlio
    Both commands says "can't load package: package ../..: no buildable Go
    source files in /" on my x86_64 PC,but I have an arm board which is working
    fine.That's strange...

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedOct 28, '15 at 12:39p
activeOct 31, '15 at 11:32a
posts5
users3
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase