Skip to content

fix: panic in elan toolchain gc on toolchains without a directory - #207

Merged
Kha merged 1 commit into
masterfrom
push-wotxrmvrltyo
Aug 24, 2026
Merged

fix: panic in elan toolchain gc on toolchains without a directory#207
Kha merged 1 commit into
masterfrom
push-wotxrmvrltyo

Conversation

@Kha

@Kha Kha commented Aug 24, 2026

Copy link
Copy Markdown
Member

Toolchain::is_custom asserted that the toolchain exists, so analyze_toolchains panicked with assertion failed: self.exists() whenever list_toolchains returned a toolchain whose directory is gone by the time it is inspected.

`Toolchain::is_custom` asserted that the toolchain exists, so `analyze_toolchains` panicked with `assertion failed: self.exists()` whenever `list_toolchains` returned a toolchain whose directory is gone by the time it is inspected — a toolchain deleted manually in between, or a directory name that de-sanitizes into a path outside the toolchains directory. `is_custom` is now answerable for toolchains that do not exist, and `gc` skips them instead of offering to collect them.
@Kha
Kha enabled auto-merge (squash) August 24, 2026 15:47
@Kha
Kha merged commit 7dbaedf into master Aug 24, 2026
5 checks passed
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.

1 participant