Panic if directory named Gemfile exists #4191
Replies: 1 comment
-
Fixed by #4256 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
mise
2025.1.9 linux-arm64 (b915c4f 2025-01-17)
panics if a directory namedGemfile
exists.I'm currently using
mise
on a project that has aGemfile
directory, which contains code for parsing ruby gemfiles. I can work around this by renaming the folder to something else, but I thinkmise
should be updated to handle this edge case.Steps to reproduce
Run a docker container:
Install
mise
/ # wget -O - https://mise.run | sh
Run
mise
/ # ~/.local/bin/mise ls Tool Version Source Requested
Create
Gemfile
directory/ # mkdir Gemfile
Run
mise
again, panic occurs:What is the current bug behavior?
mise
panicsWhat is the expected correct behavior?
mise
should not panicOutput of
mise doctor
Click to expand
Possible fixes
Update
mise
so it doesn't attempt to parseGemfile
if it's a directory.Beta Was this translation helpful? Give feedback.
All reactions