Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Is that correct that "go get -u" inside a module directory will break dependent package's go.mod requirement? #33465
$ go version go version go1.12.5 darwin/amd64
Hi, I am not sure how to express this clearly in English. I will just show all the steps and what I got from
I have a module directory which has
and then I exeucte
So far, everything looks fine.
The weird part is when I do
Note that I am just getting the same version again. I expected no change.
This really doesn't look correct to me.
Because if you check https://github.com/go-pg/pg/blob/v9.0.0-beta.2/go.mod and https://github.com/go-pg/pg/blob/v9.0.0-beta.2/go.sum, you can see that the only package I imported does require
I really don't understand the mess in my go.mod. Why did
However, in Go 1.12, in updated the module dependencies rather than the package dependencies (see #26902).