Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Springboot rule doesn't work on Windows: write_bazelrun_env.sh: /bin/bash^M: bad interpreter: No such file or directory #186

Open
beastie1888 opened this issue Jan 26, 2024 · 2 comments

Comments

@beastie1888
Copy link

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.

@plaird
Copy link
Contributor

plaird commented Jan 28, 2024

Thanks for the report. I don't know if anyone has successfully built with rules_spring on Windows. We have had #25 in the backlog for years, but otherwise it has been quiet.

I recently gave up maintainer duties for another open source project I owned, with the idea that I could shift more attention to rules_spring. I want to implement some new features, which would include a rewrite in a non-bash implementation. But I don't have a roadmap yet.

@beastie1888
Copy link
Author

Thank you for your answer. I also checked to see if my git client is adding the carriage return symbol to the files. I opened my bazel workspace directory and all source files had a carriage return at the end of each line. So, I reconfigured git to NOT add it when fetching the code, reinstalled bazel, but it failed the same way. Will post here if I find anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants