Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: mise use does not create a local .mise.toml anymore #2406

Merged
merged 2 commits into from
Jul 29, 2024

Conversation

roele
Copy link
Contributor

@roele roele commented Jul 28, 2024

Fixes #2405

Not quite sure if this is the correct approach. The LOCAL_CONFIG_FILENAMES is very extensive and also contains the path of the global configuration file. So traversing up directories from a directory within user home will at some point find the global configuration. Am i assuming correctly that you could also have the path .config/mise/config.toml in a specific project directory?

@roele roele force-pushed the issues/2405 branch 3 times, most recently from acb9a06 to f41a5f9 Compare July 28, 2024 18:01
@roele
Copy link
Contributor Author

roele commented Jul 28, 2024

After looking at the failing tests i wonder how config file creation is supposed to work. How do we know if a tool-version file should be created? Use the asdf_compat setting?

Also unit tests fail because of an OpenSSL vulnerability which should be fixed with #2397

fn test_use_local_tool_versions() {
fn test_use_local_create() {
reset();
let _ = file::remove_file(env::current_dir().unwrap().join(".test-tool-versions"));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

we have to explicitly remove the .test-tool-versions as the test setup creates both

@jdx jdx enabled auto-merge (squash) July 29, 2024 17:48
@jdx jdx merged commit 1865fb5 into jdx:main Jul 29, 2024
10 checks passed
@roele roele deleted the issues/2405 branch August 13, 2024 08:21
triarius pushed a commit to triarius/mise that referenced this pull request Sep 18, 2024
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.

mise use does not create a local .mise.toml anymore
2 participants