Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Invoke wrong linker-wrapper script under Msys2

Open
#58 4 comments 0 reactions 0 assignees View on GitHub

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
Tech stack
bash, kotlin, shell
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

https://github.com/mozilla/rust-android-gradle/blob/aff8cdb1fbb9d28469cff98ab6c5ed60a764e12c/plugin/src/main/kotlin/com/nishtahir/CargoBuildTask.kt#L183

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mozilla/rust-android-gradle

All issues in mozilla/rust-android-gradle

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.