-
Notifications
You must be signed in to change notification settings - Fork 11
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
Why to avoid baking absolute paths into our precompiled files? #20
Comments
@staticfloat Apologies for bugging you, but since according to |
I assume for |
Relocatability of the output of precompilation? I wasn't even aware that's a thing :-). Could you give me a pointer when / how that might happen? |
However, you can construct an example without PackageCompiler too. |
Yep. Another example is if you have a depot that gets mounted at different places, e.g. if you mount your depot into a docker container. |
The README says: "we typically do not want to bake absolute paths into our precompiled files" but gives no clue as to why.
Could you elaborate? For my particular application, it would tremendously simplify things if I could access the scratch space during precompilation. Background: my scratch space contains symlinks into JLL artifacts. Whenever those JLLs get updated, I need to regenerate the symlinks. By far the easiest way to do this is to simply regenerate the scratch space during precompilation of my package, which AFAIK is guaranteed to happen whenever one of its JLL dependencies changes.
So far this seems to work well, but this off hand remark in the Scratch.jl README.md makes me worry there are issues I am not aware of.
The text was updated successfully, but these errors were encountered: