Re: [go-nuts] How to update packages without duplicating distro packages

2018-08-09 Thread Jakob Borg
On 9 Aug 2018, at 18:13, Kevin Locke wrote: > > That is great! `gobin -u` is very close to what I was looking for. > I think it will be sufficient for my needs. Thank you! > > I'm surprised this isn't part of the go tool, since it seems like all > system administrators would need to use gobin

Re: [go-nuts] How to update packages without duplicating distro packages

2018-08-09 Thread Kevin Locke
On Thu, 2018-08-09 at 06:18 +, Jakob Borg wrote: > On 9 Aug 2018, at 00:09, Kevin Locke wrote: >> Thanks for the explanation! Is there a way for me to update the >> locally installed packages (shfmt and its dependencies in this >> example) without installing additional dependencies which were

Re: [go-nuts] How to update packages without duplicating distro packages

2018-08-08 Thread Jakob Borg
On 9 Aug 2018, at 00:09, Kevin Locke mailto:ke...@kevinlocke.name>> wrote: Thanks for the explanation! Is there a way for me to update the locally installed packages (shfmt and its dependencies in this example) without installing additional dependencies which weren't initially installed? You ne

Re: [go-nuts] How to update packages without duplicating distro packages

2018-08-08 Thread Space A.
Just wondering, have you noticed my message? I think it's the only possible solution atm. Regards, четверг, 9 августа 2018 г., 1:09:40 UTC+3 пользователь Kevin Locke написал: > > On Wed, 2018-08-08 at 21:57 +, Jakob Borg wrote: > > What’s happening here is that you are pulling in more depen

Re: [go-nuts] How to update packages without duplicating distro packages

2018-08-08 Thread Kevin Locke
On Wed, 2018-08-08 at 21:57 +, Jakob Borg wrote: > What’s happening here is that you are pulling in more dependencies > than you expect. > > $ rm -rf ~/go $ go get -u > mvdan.cc/sh/cmd/shfmt > > In those commands, you downloaded the repo > mvdan.cc/sh

Re: [go-nuts] How to update packages without duplicating distro packages

2018-08-08 Thread Jakob Borg
What’s happening here is that you are pulling in more dependencies than you expect. $ rm -rf ~/go $ go get -u mvdan.cc/sh/cmd/shfmt In those commands, you downloaded the repo mvdan.cc/sh and build cmd/shfmt that is part of it, while also downloa

Re: [go-nuts] How to update packages without duplicating distro packages

2018-08-08 Thread Kevin Locke
On Wed, 2018-08-08 at 14:20 +0200, Jan Mercl wrote: > On Wed, Aug 8, 2018 at 1:40 PM Kevin Locke wrote: > > In my initial email $GOPATH was unset. > > Then I would try (unset $GOPATH defaults to being effectively the same as > $HOME/go on nix) > > $ cd $HOME/go/src ; go get -u ./... > > (add -v

Re: [go-nuts] How to update packages without duplicating distro packages

2018-08-08 Thread Jan Mercl
On Wed, Aug 8, 2018 at 1:40 PM Kevin Locke wrote: > In my initial email $GOPATH was unset. Then I would try (unset $GOPATH defaults to being effectively the same as $HOME/go on nix) $ cd $HOME/go/src ; go get -u ./... (add -v and/or -x to see if something is actually happening) -- -j -- Y

Re: [go-nuts] How to update packages without duplicating distro packages

2018-08-08 Thread Kevin Locke
On Wed, 2018-08-08 at 11:50 +0200, Jan Mercl wrote: > On Mon, Aug 6, 2018 at 6:12 AM Kevin Locke wrote: >> Is there a way to update packages installed using `go get` without >> duplicating packages that are distributed with Go or by my Linux >> distribution? > > Assuming your $GOPATH is something

Re: [go-nuts] How to update packages without duplicating distro packages

2018-08-08 Thread Jan Mercl
On Mon, Aug 6, 2018 at 6:12 AM Kevin Locke wrote: > Is there a way to update packages installed using `go get` without > duplicating packages that are distributed with Go or by my Linux > distribution? Assuming your $GOPATH is something like : $ cd /src; go get -u ./... -- -j -- You receiv