-
Notifications
You must be signed in to change notification settings - Fork 691
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
docker_build: unintuitive behavior if data_path isn't a prefix of added files' paths #1109
Comments
I think this should be treated as an error. @damienmg thoughts? |
This is working as designed but I have not given much though about what should be the correct behavior, an error might be wanted indeed. |
As a data point, the analogous |
Actually not quite:
|
Closing due to age. |
If
data_path
is not a prefix of a file, that file gets inserted with its entire path form the repository root in tact. This can actually be exploited as a workaround for the bazelbuild/bazel#677 : setdata_path
to some absolute path that's not a prefix of the files you are adding.The text was updated successfully, but these errors were encountered: