Skip to content

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

Merged
merged 1 commit into from
Apr 1, 2022

Conversation

gregmagolan
Copy link
Collaborator

No description provided.

@gregmagolan gregmagolan requested a review from alexeagle April 1, 2022 02:40
@gregmagolan gregmagolan force-pushed the run_binary_with_dir branch 2 times, most recently from 0690fdc to ee35d14 Compare April 1, 2022 02:45
@gregmagolan gregmagolan requested a review from kormide April 1, 2022 02:45
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.",
Copy link
Collaborator

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gregmagolan gregmagolan force-pushed the run_binary_with_dir branch from ee35d14 to 9c0aa0a Compare April 1, 2022 03:01
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.
Copy link
Collaborator

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds reasonable to me

@gregmagolan gregmagolan merged commit e30e89f into bazel-contrib:main Apr 1, 2022
@@ -1,30 +1,9 @@
"Helpers to expand make variables"
Copy link
Collaborator

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??

Copy link
Collaborator Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants