-
Notifications
You must be signed in to change notification settings - Fork 5
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
Bug: v1.2.1 has carriage return in bin/cli.js shebang line #44
Comments
Hmm, I would have expected that the .editorconfig is there to avoid such things. Otherwise the .editorconfig seems pretty useless to me if the editor still adds \r\n instead of \n. Also, we should add a CI test for this. Will try to fix and re-release. |
.editorconfig is working fine - the file in the repository doesn't have |
Well, I'm on Windows so this doesn't come completely unexpected. Trying to get a test for it, but can't reproduce the code snippet you gave above on Windows yet. |
The addition of a .gitattributes file that enforces lf for /bin/cli.js should help, will release 1.2.2 shortly. |
Looking at previous releases something changed in the release process between releases 1.1.0 and 1.2.0 grabbing the packaged tars from https://registry.npmjs.org/stac-node-validator/ for these two releases shows the |
Nothing in the release process has changed (intentionally) on my side, the process I do is the same. Must be some tooling that has changed, but how shall I know that if whatever tool changes something in-between?! |
v1.2.2 has been released, the line ending was lf during the release so that should work now. |
Fix confirmed, thanks! |
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The command should run without issue.
Actual behavior
Additional context
The command works when installed with
npm
. Presumably it converts newlines at install time to avoid this.I could automate the release on merge to master if you add the relevant credentials to the repo secrets.
Discovered in this PR.
The text was updated successfully, but these errors were encountered: