You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR: no such package '@@gazelle~~go_deps~com_github_containerd_containerd//github.com/containerd/containerd/api/types/task': BUILD file not found in directory 'github.com/containerd/containerd/api/types/task' of external repository @@gazelle~~go_deps~com_github_containerd_containerd. Add a BUILD file to a directory to mark it as a package.
ERROR: HOME/.cache/bazel/_bazel_USER/9d227236e269dae4c9e47180964091a9/external/gazelle~~go_deps~com_github_containerd_containerd/runtime/v1/shim/v1/BUILD.bazel:5:14: no such package '@@gazelle~~go_deps~com_github_containerd_containerd//github.com/containerd/containerd/api/types/task': BUILD file not found in directory 'github.com/containerd/containerd/api/types/task' of external repository @@gazelle~~go_deps~com_github_containerd_containerd. Add a BUILD file to a directory to mark it as a package. and referenced by '@@gazelle~~go_deps~com_github_containerd_containerd//runtime/v1/shim/v1:shim_proto'
ERROR: Analysis of target '@@gazelle~~go_deps~com_github_containerd_containerd//runtime/v1/shim/v1:shim_proto' failed; build aborted: Analysis failed
The repository github.com/containerd/containerd contains multiple modules. The relevant ones are
For some reasons Gazelle generates the package com_github_containerd_containerd//github.com/containerd/containerd/api/types/task instead of com_github_containerd_containerd_api//types/task. It's go.mod file contains a replace github.com/containerd/containerd/api => ./api line.
What version of gazelle are you using?
0.38.0
What version of rules_go are you using?
0.49.0
What version of Bazel are you using?
7.3
Does this issue reproduce with the latest releases of all the above?
Yes
What operating system and processor architecture are you using?
Linux x86_64
What did you do?
go.mod
file viago mod init test
go get github.com/containerd/containerd
MODULE.bazel
file with the following contenttouch BUILD
USE_BAZEL_VERSION=7.x bazelisk build @com_github_containerd_containerd//...
What did you expect to see?
Build succeeds.
What did you see instead?
The repository github.com/containerd/containerd contains multiple modules. The relevant ones are
For some reasons Gazelle generates the package
com_github_containerd_containerd//github.com/containerd/containerd/api/types/task
instead ofcom_github_containerd_containerd_api//types/task
. It'sgo.mod
file contains areplace github.com/containerd/containerd/api => ./api
line.Related issues
#689
The text was updated successfully, but these errors were encountered: