Skip to content

fix: respect MISE_DEFAULT_CONFIG_FILENAME#5899

Merged
jdx merged 5 commits into
jdx:mainfrom
risu729:default-config-filename
Aug 13, 2025
Merged

fix: respect MISE_DEFAULT_CONFIG_FILENAME#5899
jdx merged 5 commits into
jdx:mainfrom
risu729:default-config-filename

Conversation

@risu729

@risu729 risu729 commented Aug 4, 2025

Copy link
Copy Markdown
Contributor

resolves #5515

Copilot AI review requested due to automatic review settings August 4, 2025 05:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request fixes the code to respect the MISE_DEFAULT_CONFIG_FILENAME environment variable instead of hardcoding "mise.toml" as the default configuration filename.

  • Replace hardcoded "mise.toml" strings with the configurable env::MISE_DEFAULT_CONFIG_FILENAME
  • Add missing import for the env module in the config generate module

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/config/config_file/mod.rs Updates parse_or_init function to use configurable default filename
src/cli/config/generate.rs Adds env import and updates tool_versions method to use configurable filename

Comment thread src/config/config_file/mod.rs Outdated
Comment thread src/cli/config/generate.rs Outdated
@jdx

jdx commented Aug 4, 2025

Copy link
Copy Markdown
Owner

mind adding an e2e test? these config path rules often break if we don't have them

@risu729 risu729 marked this pull request as draft August 5, 2025 03:44
@risu729 risu729 marked this pull request as ready for review August 13, 2025 08:24
@jdx

jdx commented Aug 13, 2025

Copy link
Copy Markdown
Owner

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no bugs!


@jdx jdx merged commit 917c00d into jdx:main Aug 13, 2025
17 of 18 checks passed
@risu729 risu729 deleted the default-config-filename branch August 13, 2025 10:37
jdx pushed a commit that referenced this pull request Aug 14, 2025
### 📦 Registry

- enable kubecolor test by [@risu729](https://github.com/risu729) in
[#6008](#6008)
- fix os specific backends for usage by
[@risu729](https://github.com/risu729) in
[#6007](#6007)
- use aqua backend for restish by [@risu729](https://github.com/risu729)
in [#5986](#5986)
- add cfssljson
([aqua:cloudflare/cfssl/cfssljson](https://github.com/cloudflare/cfssl/cfssljson))
by [@disintegrator](https://github.com/disintegrator) in
[#6013](#6013)
- add claude-squad
([aqua:smtg-ai/claude-squad](https://github.com/smtg-ai/claude-squad))
by [@TyceHerrman](https://github.com/TyceHerrman) in
[#5894](#5894)

### 🚀 Features

- **(aqua)** make bin paths executable by
[@risu729](https://github.com/risu729) in
[#6010](#6010)
- added header bar during `mise install` by
[@jdx](https://github.com/jdx) in
[#6022](#6022)

### 🐛 Bug Fixes

- **(aqua)** improve warnings for packages without repo_owner and
repo_name (2nd attempt) by [@risu729](https://github.com/risu729) in
[#6009](#6009)
- version prefix detection by [@risu729](https://github.com/risu729) in
[#5943](#5943)
- respect MISE_DEFAULT_CONFIG_FILENAME by
[@risu729](https://github.com/risu729) in
[#5899](#5899)

### New Contributors

- @disintegrator made their first contribution in
[#6013](#6013)
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.

3 participants