-
Notifications
You must be signed in to change notification settings - Fork 180
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
Windows: implement native_binary and native_test rules #148
Comments
Do you plan to work on this? IMO, that would be great to have this (and #149) before publishing the blog post about living in a bash-less world. |
Yes, and yes I agree. |
I plan to use these functions in native_binary() and native_test(). See bazelbuild#148
I plan to use these functions in native_binary() and native_test(). See #148
native_binary() wraps a pre-built binary or script in a *_binary rule interface. Rules like genrule can tool-depend on it, and it can be executed with "bazel run". This rule can also augment the binary with runfiles. native_test() is similar, but creates a testable rule instead of a binary rule. Fixes bazelbuild#148 RELNOTES[NEW]: The new `native_binary()` and `native_test()` rules let you wrap a pre-built binary in a binary and test rule respectively.
native_binary() wraps a pre-built binary or script in a *_binary rule interface. Rules like genrule can tool-depend on it, and it can be executed with "bazel run". This rule can also augment the binary with runfiles. native_test() is similar, but creates a testable rule instead of a binary rule. Fixes #148 RELNOTES[NEW]: The new `native_binary()` and `native_test()` rules let you wrap a pre-built binary in a binary and test rule respectively.
The documentation referencing these rules link to non-existent pages:
The bold links are dead. |
I plan to use these functions in native_binary() and native_test(). See bazelbuild/bazel-skylib#148
native_binary() wraps a pre-built binary or script in a *_binary rule interface. Rules like genrule can tool-depend on it, and it can be executed with "bazel run". This rule can also augment the binary with runfiles. native_test() is similar, but creates a testable rule instead of a binary rule. Fixes bazelbuild/bazel-skylib#148 RELNOTES[NEW]: The new `native_binary()` and `native_test()` rules let you wrap a pre-built binary in a binary and test rule respectively.
Implement rules that allow wrapping a native binary (or native script) in a
_binary
and_test
rule, so we canbazel run
andbazel test
it, or use astools
entry for other rules.Desired semantics:
Crucially these rules should use
ctx.actions.run
and NOTctx.actions.run_shell
, to avoid depending on Bash.The text was updated successfully, but these errors were encountered: