Repository navigation
fix(mise): only the files mise reads count as mise configuration - #322
Merged
Merged
Conversation
The mise manager treated any `.toml` file under a `mise/`, `.mise/` or `.config/mise/` folder as mise configuration. A crate's `crates/mise/Cargo.toml` was read as mise settings governing `crates/` and the root: its `[package]` and `[dependencies]` tables counted as unknown settings, so every mise tool in the repository failed its lookup with "settings in crates/mise/Cargo.toml that may move where mise installs it from". Configuration is now exactly the names mise 2026.10.11 reads (`DEFAULT_CONFIG_FILENAMES` in src/config/mod.rs): `mise.toml`, `.mise.toml`, `.config/mise.toml`, `<dir>/config.toml`, `.config/mise/mise.toml`, `<dir>/conf.d/*.toml` and `<dir>/conf.d/<folder>/mise.toml` with their `.local` and environment variants, plus `.miserc.toml`, `.miserc.local.toml` and `.config/miserc.toml` (src/config/miserc.rs) in place of any `.miserc*` file. Each configures the directory mise reads it from. Task include walks skip the same names mise's walk skips.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
count-patchula | 63cd28f | Commit Preview URL Branch Preview URL |
Nov 14 2026, 07:42 AM |
sweepies
added a commit
that referenced
this pull request
Nov 14, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Found by running the Count on his own repository: all 41 mise tool lookups failed with "cannot read from the registry settings in crates/mise/Cargo.toml that may move where mise installs it from".
Cause
config_filetreated any.tomlunder anymise/,.mise/or.config/mise/folder as mise configuration. So thepatchula-misecrate'scrates/mise/Cargo.tomlwas read as mise settings, and its[package]and[dependencies]tables counted as settings that may redirect every tool.Fix
Only the names mise reads count, taken from mise's source at the pinned version and listed in a comment on
config_root:mise.toml,.mise.tomland.config/mise.toml;<dir>/config.tomlfor.config/mise,.miseandmise;.config/mise/mise.toml;conf.dfiles and folders;.localand environment variants;.misercfiles (.miserc.toml,.miserc.local.toml,.config/miserc.toml).One
config_rootreplaces bothgovernedand the folder rule, and the task-include walk skips exactly what mise's walk skips. Seeguide/sources.md.Notes
extractandfilesgo from 6 to 7, because lookup-failure reasons and which files count as settings change. The other rows are rehashed.mise/config.toml,conf.dfragments and environment files are still not extracted, onlymise.toml,.mise.tomland.tool-versions. A glob task include that matches a config file is still skipped as config.