Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Global preinstall/postinstall hooks #3834

Closed
knu opened this issue Dec 27, 2024 · 0 comments
Closed

Global preinstall/postinstall hooks #3834

knu opened this issue Dec 27, 2024 · 0 comments

Comments

@knu
Copy link
Contributor

knu commented Dec 27, 2024

It seems the current experimental hooks feature is limited to per-project configuration, but there’s also a need for global preinstall/postinstall hooks. For instance, when installing a new Rust version, I’d like to automatically place a default Cargo configuration file (config.toml) in its .cargo/ directory to make sure additional compiler flags are used. When installing a new version of Go or Ruby as an upgrade to the current system-wide default version, I’d like to install some must-have utilities using go install/gem install. When installing a new version of PostgreSQL, you could dump the databases of the current version in preinstall and then restore them in postinstall.

These hooks would streamline routine setup tasks and ensure consistency across all versions of tools used in day-to-day development.

Repository owner locked and limited conversation to collaborators Dec 27, 2024
@jdx jdx converted this issue into discussion #3844 Dec 27, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

1 participant