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

Don't panic on broken symlinks when listing toolchains #141

Open
mkrasnitski opened this issue Dec 17, 2024 · 0 comments
Open

Don't panic on broken symlinks when listing toolchains #141

mkrasnitski opened this issue Dec 17, 2024 · 0 comments

Comments

@mkrasnitski
Copy link

I have a stage1 symlink in my toolchain cache that can be broken depending on the state of my local copy of the rustc repository. Running cache cache toolchain while this symlink is broken panics in the following way:

thread 'main' panicked at src/commands/toolchains.rs:62:27:
called `Result::unwrap()` on an `Err` value: Error { depth: 0, inner: Io { path: Some("/home/michael/.local/share/rustup/toolchains/stage1"), err: Os { code: 2, kind: NotFound, message: "No such file or directory" } } }

It would be great to either print a proper error in this case, or otherwise continue.

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

No branches or pull requests

1 participant