salesforce / salesforce/rules_spring
Springboot rule doesn't work on Windows: write_bazelrun_env.sh: /bin/bash^M: bad interpreter: No such file or directory
Nobody has claimed this yet.
- Dominant language
- Starlark
- Stars
- 257
- Forks
- 58
- PR merge metrics
- No merged PRs in 30d
Description
Hey there,
trying to build our project on Windows but I got:
bash.exe failed: error executing command (from target //my/project/target) C:\WINDOWS\system32\bash.exe -c ... (remaining 1 argument skipped)
/bin/bash: external/rules_spring/springboot/write_bazelrun_env.sh: /bin/bash^M: bad interpreter: No such file or directory
We are using the springboot rule but it seems new lines are not properly interpreted in Windows.
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.
Research direction
Start with springboot/write_bazelrun_env.sh and reproduce the Windows build for target //my/project/target. Inspect how the script's line endings are stored and run the build again; done means the script no longer produces the /bin/bash^M bad-interpreter error on Windows.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bash, spring-boot
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 40/100