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: no panic on missing current dir #1462

Merged
merged 2 commits into from
Jan 15, 2024

Conversation

tamasfe
Copy link
Contributor

@tamasfe tamasfe commented Jan 15, 2024

The shell is spammed with a panic message after each command if the current directory is not available, with this PR simply mise ignores/logs if that is the case instead of a hard crash.

I noticed the issue while browsing a remote snapshot directory tree that was FUSE mounted by kopia.

@jdx jdx enabled auto-merge (squash) January 15, 2024 21:30
@jdx jdx merged commit 9c4b7fb into jdx:main Jan 15, 2024
7 checks passed
@tamasfe
Copy link
Contributor Author

tamasfe commented Jan 15, 2024

I've just realized that global/system config could still be read, considering this is such a niche case I assume it doesn't matter, still would it be worth it to open a separate PR for that?

@jdx
Copy link
Owner

jdx commented Jan 15, 2024

we should probably support that. Is there a user that is going to have problems with it? I would expect probably not for a long time, but I also think it will happen one day and if we don't fix this now I think it would be very hard to diagnose.

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.

None yet

2 participants