-
Notifications
You must be signed in to change notification settings - Fork 377
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
run_script not called for pre-unlink scripts #3761
Comments
Hey @alexc5589! Can you please point to the code and the docs you're referring to? Thanks! |
Yeah sure, thanks for the reply. The docs I'm referring to are the conda description of link scripts, here https://docs.conda.io/projects/conda-build/en/stable/resources/link-scripts.html The comment in the code I'm referring to is the comment on the run_script function, here https://github.com/mamba-org/mamba/blob/main/libmamba/src/core/link.cpp#L314. It looks like the intention was to call this function before unlinking. Cheers |
As far as I can tell, it looks like the |
My use case involves creating a symlink during post-link which is then cleaned up during pre-unlink. This is for systemd integration. Perhaps not the simplest example, I'm sure we can find some others in existing packages. |
run_script is called for post-link scripts but despite the comment in the code and the docs describing similar for pre-unlink there is no call present and thus pre-unlink scripts are not executed.
Is this a bug/oversight or by design?
Thanks!
The text was updated successfully, but these errors were encountered: