Skip to content

Keep mise runtime installs and locks together - #55

Open
sj26 wants to merge 1 commit into
mainfrom
amp/couple-mise-cache-data
Open

Keep mise runtime installs and locks together#55
sj26 wants to merge 1 commit into
mainfrom
amp/couple-mise-cache-data

Conversation

@sj26

@sj26 sj26 commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Why

Mise stores install-state markers and locks in its cache directory. When its cache is shared but its data directories are not, concurrent importer installs can mark another process's valid private installation as incomplete. Mise then omits buildkite-gha from PATH and fails with couldn't exec process: No such file or directory.

This exact failure was reproduced with mise 2026.8.3. The retained hosted-agent incident did not record its resolved cache path, so the reproduction establishes the failure mechanism rather than proving it was the incident's unique cause.

What

Derive MISE_CACHE_DIR from the plugin-selected MISE_DATA_DIR, keeping the installation tree and its coordination state on the same lifecycle. The focused Bats assertion prevents an inherited independent cache directory from reintroducing the split.

@sj26
sj26 requested a review from lox September 10, 2026 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant