Skip to content

Commit

Permalink
Use correct target arch in directory name for glob
Browse files Browse the repository at this point in the history
Also, disallow empty globs so we'd catch this in the future.
  • Loading branch information
illicitonion committed Jul 10, 2024
1 parent 5829929 commit a4af63b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion musl-toolchain.BUILD.bazel.template
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ filegroup(name = "empty")

filegroup(
name = "dynamic_runtime_lib",
srcs = glob(["x86_64-linux-musl/lib/*.so*"]),
srcs = glob(["{{target_arch}}-linux-musl/lib/*.so*"]),
)

musl_cc_toolchain_config(name = "k8_musl_toolchain_config", target_arch = "{{target_arch}}")
Expand Down
1 change: 1 addition & 0 deletions test-workspaces/builder/.bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
common --incompatible_disallow_empty_glob

0 comments on commit a4af63b

Please sign in to comment.