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

(Frosting) Fix line endings in build.sh within template package #2887

Closed
gep13 opened this issue Jul 15, 2020 · 2 comments · Fixed by #2898
Closed

(Frosting) Fix line endings in build.sh within template package #2887

gep13 opened this issue Jul 15, 2020 · 2 comments · Fixed by #2898
Assignees
Labels
Milestone

Comments

@gep13
Copy link
Member

gep13 commented Jul 15, 2020

When trying to run the build.sh from a new project creation from the template, you are met with the following:

image

This is due to line endings in the file not being compatible when running on a Mac.

This will likely require the addition of a .gitattributes file to the repository to ensure that the line endings are correct.

@gep13
Copy link
Member Author

gep13 commented Jul 15, 2020

This also impacts the build.config file, since the comparison of version number in the build.sh file doesn't work, since the line feeds in the build.config file are CR/LF.

It goes from this:

image

To this, once line feeds are adjusted to LF:

image

@pascalberger pascalberger transferred this issue from cake-archive/frosting Oct 15, 2020
@pascalberger pascalberger added this to the v1.0.0 milestone Oct 15, 2020
@pascalberger pascalberger changed the title Fix line endings in build.sh within template package (Frosting) Fix line endings in build.sh within template package Oct 15, 2020
devlead added a commit to devlead/cake that referenced this issue Oct 15, 2020
devlead added a commit to devlead/cake that referenced this issue Oct 15, 2020
* fixes cake-build#2887

If already cloned repo endings can be fixed by executing
1. git rm --cached -r .
2. git reset --hard
@devlead devlead self-assigned this Oct 15, 2020
gep13 added a commit that referenced this issue Oct 15, 2020
GH2887: Enforce bash scrips LF line endings
@cake-build-bot
Copy link

🎉 This issue has been resolved in version v1.0.0 🎉

The release is available on:

Your GitReleaseManager bot 📦🚀

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

Successfully merging a pull request may close this issue.

4 participants