bazelbuild / rules_testing

Starlark testing framework and utility libraries
https://rules-testing.readthedocs.io/
Apache License 2.0
22 stars 5 forks source link

[Bazel CI] Build failed with "error loading package 'external'" when both --enable_bzlmod and --enable_workspace are disabled #104

Closed sgowroji closed 1 month ago

sgowroji commented 2 months ago

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4093#0191abc4-0e4a-484d-b052-a798c3e99a8e

Platform: MacOS

Logs:

ERROR: rror loading package 'external': Both --enable_bzlmod and --enable_workspace are disabled, but one of them must be enabled to fetch external dependencies.

Culprit: https://github.com/bazelbuild/bazel/commit/5881c38

Note : This issue is due to https://github.com/bazelbuild/bazel/issues/23023. After --enable_workspace is flipped to false, users have to explicitly specify it where it's needed, or fully migrate to Bzlmod.

CC Greenteam @fweikert