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
Does this issue reproduce with the latest releases of all the above?
Unsure
What operating system and processor architecture are you using?
ubuntu x86
What did you do?
I added a new go dependency to code, build files, and the use_repo call in MODULE.bazel. I ran bazel build //<my go target>.
What did you expect to see?
I expected Bazel to build the go targets normally.
What did you see instead?
ERROR: /home/jparraga/code/<redacted>/BUILD.bazel:5:11: no such package '@gazelle~0.31.1~go_deps~com_github_rs_cors//': The repository '@gazelle~0.31.1~go_deps~com_github_rs_cors' could not be resolved: Repository '@gazelle~0.31.1~go_deps~com_github_rs_cors' is not defined and referenced by '//<redacted>'
By default the bzlmod lockfile operates under the update mode, which should recompute the bzlmod lockfile during builds. Instead of recomputing the bzlmod lockfile, I just get nonsensical build failures like above. If I delete the old bzlmod lockfile and re-run the build, it generates a new, working bzlmod lockfile and the build succeeds.
It seems that the bzlmod lockfile isn't playing nice with dependency loading via module extensions? I am not sure if this issue can be resolved, but I just wanted to report it in case others encountered it.
The text was updated successfully, but these errors were encountered:
What version of gazelle are you using?
0.31.1
What version of rules_go are you using?
0.39.1
What version of Bazel are you using?
6.3.0
Does this issue reproduce with the latest releases of all the above?
Unsure
What operating system and processor architecture are you using?
ubuntu x86
What did you do?
I added a new go dependency to code, build files, and the
use_repo
call in MODULE.bazel. I ranbazel build //<my go target>
.What did you expect to see?
I expected Bazel to build the go targets normally.
What did you see instead?
By default the bzlmod lockfile operates under the
update
mode, which should recompute the bzlmod lockfile during builds. Instead of recomputing the bzlmod lockfile, I just get nonsensical build failures like above. If I delete the old bzlmod lockfile and re-run the build, it generates a new, working bzlmod lockfile and the build succeeds.It seems that the bzlmod lockfile isn't playing nice with dependency loading via module extensions? I am not sure if this issue can be resolved, but I just wanted to report it in case others encountered it.
The text was updated successfully, but these errors were encountered: