Re: [go-nuts] Re: How to update a module's direct dependencies only

2019-09-05 Thread Mihai Borobocea
On Thu, Sep 5, 2019 at 3:28 PM Tamás Gulácsi wrote: > Ain't Go 1.13's "go get -u" does exactly this? > And the old behaviour with "go get -u all" ? > Thanks for the input but: > I cannot use 'go get -u -t -d ./...' here because that brings in the >> indirect dependency 'goB' into my go.mod. >>

[go-nuts] Re: How to update a module's direct dependencies only

2019-09-05 Thread Tamás Gulácsi
Ain't Go 1.13's "go get -u" does exactly this? And the old behaviour with "go get -u all" ? https://golang.org/cmd/go/#hdr-Add_dependencies_to_current_module_and_install_them "The -u flag instructs get to update modules providing dependencies of packages named on the command line to use newer

Re: [go-nuts] Re: How to update a module's direct dependencies only

2019-09-05 Thread Mihai Borobocea
On Thu, Sep 5, 2019 at 4:33 AM t hepudds wrote: > To upgrade your direct dependencies to their latest release (with your > indirect dependencies using versions selected based on the requirements of > your direct dependencies), this should work in most cases: > > go get $(go list -f '{{if not

[go-nuts] Re: How to update a module's direct dependencies only

2019-09-04 Thread t hepudds
Hello Mihai, To upgrade your direct dependencies to their latest release (with your indirect dependencies using versions selected based on the requirements of your direct dependencies), this should work in most cases: go get $(go list -f '{{if not (or .Main .Indirect)}}{{.Path}}{{end}}' -m