Replies: 3 comments 3 replies
-
It would also be great to pre-install some gems for very ruby managed by mise. example would be usually it's not expected to add such gems into project's Gemfile. |
Beta Was this translation helpful? Give feedback.
-
is this true? it should work in global configs I think |
Beta Was this translation helpful? Give feedback.
-
I would like to set up a postinstall hook to add a custom Cacert into every newly installed JDK but it seems that the preinstall hooks are not run if defined globally in ~/.config/mise/config.toml |
Beta Was this translation helpful? Give feedback.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions