-
Notifications
You must be signed in to change notification settings - Fork 248
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
Added support for replacing sandbox paths in build artifacts #650
Conversation
bbb5940
to
f3112b6
Compare
@jsharpe Hey, do you have any ideas as to where these permissions errors are coming from in the standalone build? |
Does this help - #622 (comment) |
Sorry, I should have acknowledged I read that. It's not clear to me where the permissions error comes from and why the file wouldn't exist, especially after it being in the result of |
Completely agree. If a check for the existence of a file is required directly after the file was included in a |
147384a
to
52e6937
Compare
a66c49a
to
0557fd1
Compare
Nice one! Yep will do. I have now realised that my PR#677 isn’t quite working as expected, so the out_data_dirs attribute may be required to use a Python toolchain built using rules_foreign_cc. Hopefully the out_data_dirs PR will be all green once I rebase off this branch |
1a43c73
to
4440397
Compare
Yep I agree. I suppose the cleanest progression of PRs would be:
That said, I’d be happy for this to be merged now and then repurpose #677 to add the python dependencies to the examples. Of course I don’t manage this repository so it’s not really up to me 😁 |
I think it's good to have changes associated with tests. There's likely a way to super optimize the commits but IMO it's not worth the paperwork for this one. The examples stand as the regression tests for the rules merged here and again, that's a good thing to me. Lets keep things moving forward and get some of these sweet new changes in 😄 |
This change expands on the
define_absolute_paths
andreplace_absolute_paths
functionality which replace absolute paths to files withinEXT_BUILD_DEPS
with that environment variable to be expanded at a later time and introducesdefine_sandbox_paths
andreplace_sandbox_paths
which more generally replaces absolute paths to the exec root with${EXT_BUILD_ROOT}
. In both cases, these variables are update at the beginning of each build and are otherwise invisible to foreign build systems.