Skip to content

Fix re-extraction of partially cleaned dart-sass cache#770

Open
pfranza wants to merge 1 commit into
larsgrefer:4.xfrom
pfranza:issue/tmp_cleanup
Open

Fix re-extraction of partially cleaned dart-sass cache#770
pfranza wants to merge 1 commit into
larsgrefer:4.xfrom
pfranza:issue/tmp_cleanup

Conversation

@pfranza
Copy link
Copy Markdown

@pfranza pfranza commented May 27, 2026

This issue is that on my mac, after about a week the system cleans up the data in the /tmp folder where the dart executable is stored and throws the following error.

Caused by: java.lang.IllegalStateException: No (unique) executable file found in /var/folders/n7/yh5g35d11fngspgm_mmplzsc0000gn/T/de.larsgrefer.sass.embedded.bundled/3.0.0-SNAPSHOT/dart-sass/3.0.0-SNAPSHOT/dart-sass

The bundled package provider previously skipped extraction whenever the target temp directory contained any regular file. If an OS temp cleaner removed the dart-sass/sass executable but left the cache directory or other files behind, startup failed with “No (unique) executable file found”.

Validate the extracted executable before returning it, and re-extract the archive when the cache is non-empty but the executable is missing or ambiguous. Add a regression test for the partial-cache-cleanup case.

The bundled package provider previously skipped extraction whenever the target temp directory contained any regular file. If an OS temp cleaner removed the dart-sass/sass executable but left the cache directory or other files behind, startup failed with “No (unique) executable file found”.

Validate the extracted executable before returning it, and re-extract the archive when the cache is non-empty but the executable is missing or ambiguous. Add a regression test for the partial-cache-cleanup case.
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