-
-
Notifications
You must be signed in to change notification settings - Fork 99
feat: add run_binary with output directory support & improved makevar expansion #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add run_binary with output directory support & improved makevar expansion #57
Conversation
0690fdc
to
ee35d14
Compare
doc = "Command line arguments of the binary.<br/><br/>Subject to" + | ||
"<code><a href=\"https://docs.bazel.build/versions/main/be/make-variables.html#location\">$(location)</a></code>" + | ||
" expansion.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The html doesn't get rendered in the git preview. Is it supposed to, or is this just for the docsite?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm. The html comes from upstream, https://github.com/bazelbuild/bazel-skylib/blob/main/rules/run_binary.bzl#L71. Looks good on the docsite https://docs.aspect.build/bazelbuild/bazel-skylib/1.2.1/docs/run_binary_doc_gen.html#run_binary-tool so I'm going to leave it.
ee35d14
to
9c0aa0a
Compare
The rule uses a Bash command on Linux/macOS/non-Windows, and a cmd.exe command | ||
on Windows (no Bash is required). | ||
|
||
This fork of bazel-skylib's copy_file adds directory support. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there was a response on bazelbuild/bazel-skylib#323
I think we should go with copy_directory
in place of copy_file(output_dir=True)
so there's some chance of going upstream
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds reasonable to me
@@ -1,30 +1,9 @@ | |||
"Helpers to expand make variables" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wow we had so much rules_nodejs legacy crap in here that wasn't really needed??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. That was some old code from RNJ. We should flip it in RNJ on the next major as well.
No description provided.