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: lowercase desired shim names #4333

Merged
merged 1 commit into from
Feb 14, 2025
Merged

Conversation

KevSlashNull
Copy link
Contributor

This fixes a bug on macOS where we are searching for a shim name with one or more characters uppercased, e.g. Python. But on macOS the APFS (default file system) is case insensitive, so mise doctor will always report an error in this case.

See #4332

This fixes a bug on macOS where we are searching for a shim name with
one or more characters uppercased, e.g. Python. But on macOS the APFS
(default file system) is case insensitive, so `mise doctor` will always
report an error in this case.
@KevSlashNull KevSlashNull force-pushed the lowercase-desired-shims branch from 2016098 to 554a043 Compare February 7, 2025 17:49
@jdx
Copy link
Owner

jdx commented Feb 8, 2025

do you have an example of a tool that has a bin with an uppercase name? is this a specific python flavor or something?

@KevSlashNull
Copy link
Contributor Author

@jdx, I assume it's something specific to the Python plugin but I don't really use Python and I also uninstalled the plugin during debugging and it still showed the doctor error.

I'll check on Monday when I'm back at my work laptop, and see where that shim is coming from. It doesn't happen on Linux seemingly.

@jdx jdx merged commit 4e0557f into jdx:main Feb 14, 2025
18 checks passed
@KevSlashNull KevSlashNull deleted the lowercase-desired-shims branch February 14, 2025 11:22
jdx pushed a commit that referenced this pull request Feb 14, 2025
### 🚀 Features

- **(registry)** add e1s by
[@kiwamizamurai](https://github.com/kiwamizamurai) in
[#4363](#4363)
- **(registry)** add 'marksman' via 'aqua:artempyanykh/marksman' backend
by [@iamoeg](https://github.com/iamoeg) in
[#4357](#4357)
- use `machengine.org` for downloading nominated zig versions by
[@hadronomy](https://github.com/hadronomy) in
[#4356](#4356)

### 🐛 Bug Fixes

- **(aqua)** apply override of version_prefix by
[@risu729](https://github.com/risu729) in
[#4338](#4338)
- **(env_directive)** apply redactions only to env with redact by
[@risu729](https://github.com/risu729) in
[#4388](#4388)
- **(hook_env)** don't exit early if watching files are deleted by
[@risu729](https://github.com/risu729) in
[#4390](#4390)
- **(rubygems_plugin)** Replace which ruby check for Windows
compatibility by [@genskyff](https://github.com/genskyff) in
[#4358](#4358)
- lowercase desired shim names by
[@KevSlashNull](https://github.com/KevSlashNull) in
[#4333](#4333)
- allow cosign opts to be empty in aqua by
[@IxDay](https://github.com/IxDay) in
[#4396](#4396)

### 📚 Documentation

- update Fedora install for dnf5 by [@rkben](https://github.com/rkben)
in [#4387](#4387)
- fix links to idiomatic version file option by
[@pietrodn](https://github.com/pietrodn) in
[#4382](#4382)
- add mise bootstrap example in CI docs by
[@hverlin](https://github.com/hverlin) in
[#4351](#4351)
- Update link in comparison-to-asdf.md by
[@hverlin](https://github.com/hverlin) in
[#4401](#4401)

### 📦️ Dependency Updates

- update rust crate bzip2 to v0.5.1 by
[@renovate[bot]](https://github.com/renovate[bot]) in
[#4392](#4392)
- update rust crate built to v0.7.6 by
[@renovate[bot]](https://github.com/renovate[bot]) in
[#4391](#4391)

### Chore

- issue closer by [@jdx](https://github.com/jdx) in
[bee1f55](bee1f55)

### New Contributors

- @iamoeg made their first contribution in
[#4357](#4357)
- @hadronomy made their first contribution in
[#4356](#4356)
- @pietrodn made their first contribution in
[#4382](#4382)
- @genskyff made their first contribution in
[#4358](#4358)
- @kiwamizamurai made their first contribution in
[#4363](#4363)
- @rkben made their first contribution in
[#4387](#4387)
- @IxDay made their first contribution in
[#4396](#4396)
- @KevSlashNull made their first contribution in
[#4333](#4333)
@KevSlashNull
Copy link
Contributor Author

Thanks for merging and sorry for responding late, @jdx! For posterity, I found the source of the uppercase Python binary.

There exists a binary at $HOME/.local/share/mise/installs/awscli/2.18.0/aws-cli.pkg/Payload/aws-cli/Python for which mise tries to create a shim.

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.

2 participants