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
fix: Added CR LF to LF Conversion for gradlew #2738
Conversation
Is this documented behavior? |
git config --global core.autocrlf true The Windows git installer also prompts the users during installation on how newlines should be handled. The default is commit with \n and pull with \r\n. |
ff589d8
to
3e869cd
Compare
excellent, thanks for fixing this. |
Which issue(s) does this change fix?
#2551
Why is this change necessary?
SAM CLI quick start Java gradle projects fail to build on Windows with --use-container or with image type.
Windows git clone will change gradlew line endings to \r\n which will not be recognized by Unix sh.
How does it address the issue?
Replace all \r\n in gradlew to \n after cookiecutter.
Simply replacing when the repo is cloned will not work as cookiecutter also changes line endings.
What side effects does this change have?
Checklist
make pr
passesmake update-reproducible-reqs
if dependencies were changedBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.