-
Notifications
You must be signed in to change notification settings - Fork 74
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
Gazelle: no such package '@com_github_cncf_xds_go//udpa/annotations': BUILD file not found in directory 'udpa/annotations' #104
Comments
You can currently work around this issue by adding this to your go_deps.gazelle_override(
build_file_generation = "on",
path = "github.com/cncf/xds/go",
) But I agree: removing |
cc @keith @mmorel-35 - should #96 be reverted, or should the /go/BUILD file be removed or fixed? |
I’d say, don’t revert it. Just remove go/BUILD. |
Oh wait. That does require us to change some of the //go:go.* references in MODULE.bazel to //:go/go.*. |
xDS has an upstream set of build files that makes Gazelle consider their project a whole new Bazel project, which makes Gazelle not generate any build files, even though the upstream ones aren't valid. See cncf/xds#104.
* deps: update Go dependencies * bazel: force Gazelle generation for xDS xDS has an upstream set of build files that makes Gazelle consider their project a whole new Bazel project, which makes Gazelle not generate any build files, even though the upstream ones aren't valid. See cncf/xds#104. * go: update cel.dev/expr for Bazel fixes cel.dev/expr had some upstream Bazel fixes in v0.16.2 without which Gazelle doesn't work. * chore: generate * e2e: remove references to kubeProxyVersion kubeProxyVersion is deprecated as of KEP-4004. It was never being set to an accurate value before, and we only used it in the e2e test, so removing the additional check should not hurt here. See https://github.com/kubernetes/enhancements/tree/master/keps/sig-network/4004-deprecate-kube-proxy-version * constellation-node-operator: use typed rate-limiter The untyped rate-limiter was deprecated in favor of a generic one that can just be instantiated to `any` to achieve the previous behaviour. * Advertise ALPN settings in NextProtos required by gRPC Signed-off-by: Daniel Weiße <[email protected]> * atls: add nextProtos nextProtos (for ALPN) is now required by gRPC, so add it. * go: add cri-client replace * deps: tidy all modules --------- Signed-off-by: Daniel Weiße <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Moritz Sanft <[email protected]> Co-authored-by: Daniel Weiße <[email protected]> Co-authored-by: edgelessci <[email protected]>
@EdSchouten I'd like to apply your workaround, but I'm using WORKSPACE instead of Bzlmod. Is there an equivalent way to alter a dep? |
Search for the |
Ah, thank you!! That totally works |
We are using gazelle to generate bazel bindings to the golang code. The version
v0.0.0-20240905190251-b4127c9b8d78
fails with:The version
github.com/cncf/xds/[email protected]
works ok. It's regression in the newer versions.My hypothesis about the root reason: @keith added in #96 a /go/BUILD file.
The file makes gazelle consider this whole subtree as a proper BAZEL project... so suspends gazelle for generating the proper BUILD files in the sub tree... But they are missing there... i.e. there are no proper BUILD files, e.g. in: https://github.com/cncf/xds/tree/main/go/udpa/annotations.
Can we make it either proper bazel project with gazelle generated BUILD targets...
or rollback the BUILD file in the subtree at all ?
The text was updated successfully, but these errors were encountered: