Skip to content

Commit 12842c0

Browse files
committed
Fix bazel in CI precompile binaries
Without this we get: ``` ERROR: Error computing the main repository mapping: error loading package 'external': Both --enable_bzlmod and --enable_workspace are disabled, but one of them must be enabled to fetch external dependencies. ```
1 parent bddeebf commit 12842c0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tools/package/main.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,15 @@ fn main() {
5656
cmd.arg(format!("--output_user_root={bc}"));
5757
}
5858

59-
cmd.args(["build", "--compilation_mode", "opt", "--strip", "always", "--enable_bzlmod=false"]);
59+
cmd.args([
60+
"build",
61+
"--compilation_mode",
62+
"opt",
63+
"--strip",
64+
"always",
65+
"--enable_bzlmod=false",
66+
"--enable_workspace=true",
67+
]);
6068

6169
cmd.args(BINARIES.iter().map(|b| format!(":{b}")));
6270
cmd.current_dir(cwd);

0 commit comments

Comments
 (0)