Skip to content

fix(mise): only the files mise reads count as mise configuration - #322

Merged
sweepies merged 1 commit into
mainfrom
fix/mise-config-files
Nov 14, 2026
Merged

sweepies merged 1 commit into
mainfrom
fix/mise-config-files

Conversation

@sweepies

@sweepies sweepies commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

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_file treated any .toml under any mise/, .mise/ or .config/mise/ folder as mise configuration. So the patchula-mise crate's crates/mise/Cargo.toml was 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.toml and .config/mise.toml;
  • <dir>/config.toml for .config/mise, .mise and mise;
  • .config/mise/mise.toml;
  • the conf.d files and folders;
  • the .local and environment variants;
  • the three .miserc files (.miserc.toml, .miserc.local.toml, .config/miserc.toml).

One config_root replaces both governed and the folder rule, and the task-include walk skips exactly what mise's walk skips. See guide/sources.md.

Notes

  • Corpus: unchanged.
  • State: extract and files go from 6 to 7, because lookup-failure reasons and which files count as settings change. The other rows are rehashed.
  • Follow-ups: tools declared in mise/config.toml, conf.d fragments and environment files are still not extracted, only mise.toml, .mise.toml and .tool-versions. A glob task include that matches a config file is still skipped as config.

View guided diff Turn on auto-fix

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.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

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
sweepies merged commit 46411fe into main Nov 14, 2026
13 checks passed
@sweepies
sweepies deleted the fix/mise-config-files branch November 14, 2026 07:51
sweepies added a commit that referenced this pull request Nov 14, 2026
@sweepies-ops sweepies-ops Bot mentioned this pull request Nov 14, 2026
sweepies added a commit that referenced this pull request Nov 14, 2026
…ies no label (#321)

* fix(advisories): severity from the CVSS vector when the advisory carries no label

* fix(advisories): scheme labels, zero scores, lenient severity entries and a bounded manifest column

* chore: rehash state rows after rebasing onto #322
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