-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
"Execute an input binary" Skylark cookbook example fails #993
Comments
|
We should update the example to prefix a.sh with "./". Thanks for the report! |
I don't think that's possible. In the example,
And since I think the only way to fix this code is to to move Which is to say, I think there's an actual bug in Bazel, because running an executable in the WORKSPACE root directory really ought to work. |
Ah, good point. Perhaps the skylark action code needs to change. |
This actually looks like #347. I very much doubt #958 had to do anything with this: the default path modified in that bug should have never come into play because it's very hard to imagine a realistic scenario in which I think the examples in the documentation are correct, but those examples are not specific to any |
Obsolete. Examples are now here: https://github.com/bazelbuild/examples |
Consider this git repository: https://github.com/dfabulich/bazel-tempfile-example
It's a copy and paste from the "Execute an input binary" sample from the Skylark cookbook. http://bazel.io/docs/skylark/cookbook.html
I expected it to succeed, but it failed.
a.sh
is definitely there in thebazel-tempfiles
directory, but since it's not being invoked with./a.sh
, it's not on the path, so the script isn't executed. You can runa.sh
by hand like this:How is this example supposed to work?
The text was updated successfully, but these errors were encountered: