Invoke wrong linker-wrapper script under Msys2
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- build-system
Research direction
Start in plugin/src/main/kotlin/com/nishtahir/CargoBuildTask.kt around line 183 and inspect how the wrapper script is selected from the reported operating system. Reproduce the behavior under Msys2 or Cygwin with Windows Java, then verify that a bash shell selects linker-wrapper.sh rather than linker-wrapper.bat and avoids the response-file argument-length failure.
Written by the indexing model from the issue text.
Description
if run gradlew under Msys2 or Cygwin and use windows java will also report os.name is Windows, so that will always invoke linker-wrapper.bat not linker-wrapper.sh.
but if Cygwin native command run under winshell, will expand linker response file to command arguments and that cause Argument list too long error.
https://github.com/cygwin/cygwin/blob/44eb4163234089e8830b018dbcf6a08333eab202/winsup/cygwin/dcrt0.cc#L337-L343
Wish test if shell is bash then run linker-wrapper.sh not linker-wrapper.bat under windows.
- Dominant language
- Kotlin
- Stars
- 1.3k
- Forks
- 95
- PR merge metrics
- No merged PRs in 30d
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
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 90/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
AAswordman/Operit#1292 ·
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
bug webview
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
home-assistant/android#7524 ·
Maintainers usually reply within 1 day
-
Issue: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
OpenAPITools/openapi-generator#25021 ·
Maintainers usually reply within 1 day