Gophers often mistakenly put a -u in 'go get -u foo', when they would have been better off with just 'go get foo'.
'go get foo' says to upgrade foo itself. It's shorthand for 'go get foo@upgrade'
'go get -u foo' says to *also* upgrade all the direct and indirect deps of foo.
You never need to look at go.sum.
go.mod has everything you need.
Gophers often mistakenly put a -u in 'go get -u foo', when they would have been better off with just 'go get foo'.
'go get foo' says to upgrade foo itself. It's shorthand for 'go get foo@upgrade'
'go get -u foo' says to *also* upgrade all the direct and indirect deps of foo.
Me: “Oh, this is the Go gopher, from the Go programming language. I just got back from…”
Guy: “oh, I thought it was a roast beef sandwich on a surfboard”
The shirt:
Me: “Oh, this is the Go gopher, from the Go programming language. I just got back from…”
Guy: “oh, I thought it was a roast beef sandwich on a surfboard”
The shirt: