-
Notifications
You must be signed in to change notification settings - Fork 385
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
golang.org/x/tools removed vcs package #1579
Comments
Same problem here |
Just started seeing this on one project as well. |
the package was moved to https://pkg.go.dev/golang.org/x/tools/go/[email protected] So short term: we need to upgrade Gazelle dependencies to include this new module, then update the BUILD file so that Long term: we should stop using this package and either vendor in the 2 functions needed, or move to use something else. |
Forcing |
@eko How did you force it? Do you mean just pinning the dependency in your go.mid? |
Hi @Geethree, yes, just by editing the version in the $ go mod tidy
$ bazel run //:gazelle -- update-repos -from_file=go.mod -to_macro=deps.bzl%go_dependencies |
Signed-off-by: Chris Koch <[email protected]>
Signed-off-by: Chris Koch <[email protected]>
What version of gazelle are you using?
latest main
What version of rules_go are you using?
latest (v0.41.0)
What version of Bazel are you using?
6.2.1
Does this issue reproduce with the latest releases of all the above?
yes
What operating system and processor architecture are you using?
Ubuntu 22.04 / x86_64
What did you do?
I tried to upgrade
golang.org/x/tools
in my repo. My repo also uses bazel-gazelle.What did you expect to see?
The upgrade should suceed.
What did you see instead?
Gazelle does not compile anymore when I use it in my repo. Since it depends on
golang.org/x/tools/go/vcs
, which has been removed in versionv0.11.0
, minimum version selection will lead to a missing package:See also: golang/go#57051
The text was updated successfully, but these errors were encountered: