Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Mackay committed Feb 7, 2024
1 parent 1acec8e commit 101a096
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
15 changes: 15 additions & 0 deletions py/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("@aspect_bazel_lib//lib:write_source_files.bzl", "write_source_files")

# For stardoc to reference the files
exports_files(["defs.bzl"])
Expand Down Expand Up @@ -30,3 +31,17 @@ bzl_library(
"@aspect_bazel_lib//lib:utils",
],
)


genrule(
name = "w",
outs = ["which.txt"],
cmd = "which dirname > $@ && which realpath >> $@",
)

write_source_files(
name = "wr",
files = {
"expected_which.txt": ":which.txt",
}
)
2 changes: 2 additions & 0 deletions py/expected_which.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/usr/bin/dirname
/bin/realpath

0 comments on commit 101a096

Please sign in to comment.