The check for existing standalone toolchains is not resilient to missing files
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Domain
- build-system
Research direction
Start in GenerateToolchainsTask.kt and inspect the existing standalone-toolchain check and its invocation of make_standalone_toolchain.py. Remove the check so the toolchain is regenerated even when its top-level directory remains after files are removed. Done means --force handles existing contents and builds no longer depend on stale temporary files.
Written by the indexing model from the issue text.
Description
GenerateToolchainsTask.kt checks if the standalone toolchain exists before regenerating it. If some process reaps files from java.io.tmpdir but leaves the top-level directory for that standalone toolchain in place, builds may fail in unpredictable ways. Running make_standalone_toolchain.py is quite fast, so we might consider removing the "already exists" check. --force also takes care of overriding contents properly, so the change is fairly straightforward: just remove the check.
- Dominant language
- Kotlin
- Stars
- 1.3k
- Forks
- 95
- Avg merge
- 15m
- Merged PRs (30d)
- 2
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mozilla/rust-android-gradle
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mozilla/rust-android-gradle#174 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
mozilla/rust-android-gradle#166 · 1 comment · 3 reactions ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
mozilla/rust-android-gradle#163 · 2 comments · 2 reactions ·
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
mozilla/rust-android-gradle#158 · 7 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
mozilla/rust-android-gradle#152 · 1 comment ·
All issues in mozilla/rust-android-gradle
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Good First Issue
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
ankidroid/Anki-Android#21942 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
libre-tube/LibreTube#8781 · 1 comment ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
MetrolistGroup/Metrolist#4396 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100