Open aarondl opened 3 years ago
RE: your last point, apparently it's expected that go mod tidy
and go mod download
do not result in the same go.sum
anymore. See #43994 (and the many linked issues and workarounds people have been applying in other repos...).
cc @bcmills @jayconrod @matloob
Those source downloads are because the go
command is looking for a package named at ./v4
within module github.com/volatiletech/sqlboiler
. For go get
that's maybe not such a big deal because the main module will in general already require
the module at the correct version, but for go install
I agree that it seems excessive.
Also as a completely separate nit trying
go list all
without changes in the repo produces the error:missing go.sum entry for module providing package gopkg.in/check.v1 (imported by gopkg.in/yaml.v2); to add: go get -t gopkg.in/yaml.v2@v2.2.4
Running this command changes nothing and the error continues
I'm not able to reproduce that behavior:
sqlboiler$ go list all >/dev/null
missing go.sum entry for module providing package gopkg.in/check.v1 (imported by gopkg.in/yaml.v2); to add:
go get -t gopkg.in/yaml.v2@v2.2.4
sqlboiler$ go get -t gopkg.in/yaml.v2@v2.2.4
sqlboiler$ go list all >/dev/null
sqlboiler$
However, that sounds like it could be #44749. The fix for that (#44812) just barely missed 1.16.2.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
I expected to see only sqlboiler/v4 downloaded installed.
What did you see instead?
I additionally saw it downloading source for versions I was not interested in at all nor appear to be part of the dependency tree. Note the extraneous downloads of the source for
v1.0.0
andv3.7.1+incompatible
.Inside the project in question, I tried some queries to see if maybe there was something pulling in the old versions:
Also as a completely separate nit trying
go list all
without changes in the repo produces the error:Running this command changes nothing and the error continues, the fix is in fact running
go mod download
which adds many lines to thego.sum
file. Perhaps I should add these and commit them as the maintainer of the package.