Repository navigation
Idiomatic mise integration setup #754
Replies: 1 comment
|
The recommended approach is to use the global [tools]
hk = "latest"
pkl = "latest"
actionlint = "latest"
yamlfmt = "latest"
[env]
HK_MISE = true
[hooks]
postinstall = "hk install --mise"
[settings]
experimental = trueThis is the cleanest option because The per-tool Regarding the For local developer setup, you could add a mise task: [tasks.setup]
run = "hk install --mise"
description = "Install git hooks"Then document This comment was generated by Claude Code. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to configure a
mise.tomlso that cloning a project and runningmise installresults in a fully set up environment (tools + hk hooks installed).My initial approach used a per-tool
postinstall:However, this led to intermittent CI failures. It appears
postinstallruns per tool without guaranteed ordering, which caused a race condition wherehk install --miseexecuted before dependencies likepklwere installed.To avoid this, I switched to a global hook:
This resolves the ordering issue, but relies on experimental hooks.
The other approach I come up with was to use
mise execin the postinstallThis seems to work, but I saw some unexpected log entries
I assume the warnings happen because of the "mise-ception" in some odd way?
I did try add
--silentand--no-prepareto see if I could silence the warnings, but with not success.Does this align with how mise + hk are meant to be used, or is there a cleaner pattern for ensuring everything is installed before running
hk install --mise? Happy to help document it if so.All reactions