-
Notifications
You must be signed in to change notification settings - Fork 18k
version in go.mod is changed by dependent's go.sum file. #33236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
https://golang.org/cmd/go/#hdr-Maintaining_module_requirements
Looks like your case.
Testing dependencies are not downloaded by default, but are always added to |
( I totally agree with upgrading my version of |
Take a look at an actual build of |
Actually it does ( |
As @av86743 notes, this version requirement arises transitively through However, note that the Using
|
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?
$ cat go.mod module test go 1.12 require ( github.com/golangci/golangci-lint v1.17.1 // indirect github.com/valyala/fasthttp v1.1.0 )
What did you see instead?
$ cat go.mod module test go 1.12 require ( github.com/golangci/golangci-lint v1.17.1 // indirect github.com/valyala/fasthttp v1.2.0 )
Detail
(I'm not a native english user)
After installing example module(
github.com/golangci/golangci-lint
), You can see version offasthttp
ingo.mod
has been changed to v1.2.0.But
golangci-lint
never uses thefasthttp
(https://github.com/golangci/golangci-lint/blob/v1.17.1/go.mod). It only exists ingo.sum
(https://github.com/golangci/golangci-lint/blob/v1.17.1/go.sum).User have to change the version of
fasthttp
if he want to usegolangci-lint
even though golangci never uses the fasthttp.The text was updated successfully, but these errors were encountered: