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 trust works incorrectly with symlinked configuration file #2186

Merged
merged 1 commit into from
May 28, 2024

Conversation

roele
Copy link
Contributor

@roele roele commented May 25, 2024

Fixes #2175.

@jdx
Copy link
Owner

jdx commented May 28, 2024

I have a general feeling of disgust towards this part of the code. I think a lot of decisions have been made (mostly by me of course) around canonicalizing and not canonicalizing that have ramifications that cause behavior to act in particular ways I can't recall when reading and I would need to do a deep dive here to really understand it again.

Maybe symlinks just aren't a great way to handle this? Maybe toml files with canonical/non-canonical paths would make things more clear? Idk what we should so but it just gives me a feeling this logic should be rethought from the ground-up at some point.

@jdx jdx merged commit bf24ef6 into jdx:main May 28, 2024
8 checks passed
@roele roele deleted the issue/2175 branch May 28, 2024 16:18
@roele
Copy link
Contributor Author

roele commented May 28, 2024

@jdx After digging a bit around the code to resolve this issue, i can only agree on the sentiment.

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 trust works incorrectly with symlinked configuration file
2 participants