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

Open
#186 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement v3_rewrite
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

  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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.