Skip to content

Global preinstall/postinstall hooks #4748

Open
@jdx

Description

@jdx

Discussed in #3844

Originally posted by knu December 26, 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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions