Skip to content

Commit

Permalink
Move Bash runfiles library out of Bazel
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Nov 6, 2024
1 parent 2fd6115 commit f536223
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 949 deletions.
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ bazel_dep(name = "rules_testing", version = "0.6.0")
bazel_dep(name = "googletest", version = "1.15.2", repo_name = "com_google_googletest")
bazel_dep(name = "with_cfg.bzl", version = "0.2.4")
bazel_dep(name = "abseil-cpp", version = "20240722.0")
bazel_dep(name = "rules_shell", version = "0.2.0")
bazel_dep(name = "rules_shell", version = "0.3.0")

# TODO: wyv@ - use release 29.0 when that's out
bazel_dep(name = "protobuf", version = "29.0-rc2")
Expand Down
3 changes: 2 additions & 1 deletion MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/MODULE.tools
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ bazel_dep(name = "protobuf", version = "29.0-rc2")
bazel_dep(name = "rules_java", version = "8.3.0")
bazel_dep(name = "rules_cc", version = "0.0.13")
bazel_dep(name = "rules_python", version = "0.36.0")
bazel_dep(name = "rules_shell", version = "0.2.0")
bazel_dep(name = "rules_shell", version = "0.3.0")
# add rules_android
# add apple_support
3 changes: 2 additions & 1 deletion src/test/tools/bzlmod/MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 0 additions & 16 deletions tools/bash/runfiles/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
load("@rules_shell//shell:sh_library.bzl", "sh_library")
load("@rules_shell//shell:sh_test.bzl", "sh_test")

package(default_visibility = ["//visibility:private"])

filegroup(
Expand All @@ -19,19 +16,6 @@ filegroup(
name = "embedded_tools",
srcs = [
"BUILD.tools",
"runfiles.bash",
],
visibility = ["//tools/bash:__pkg__"],
)

sh_library(
name = "runfiles_lib",
testonly = 1,
srcs = ["runfiles.bash"],
)

sh_test(
name = "runfiles_test",
srcs = ["runfiles_test.bash"],
deps = [":runfiles_lib"],
)
6 changes: 2 additions & 4 deletions tools/bash/runfiles/BUILD.tools
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
load("@rules_shell//shell:sh_library.bzl", "sh_library")

sh_library(
alias(
name = "runfiles",
srcs = ["runfiles.bash"],
actual = "@rules_shell//shell/runfiles",
visibility = ["//visibility:public"],
)
Loading

0 comments on commit f536223

Please sign in to comment.