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

Handle case of .mill-version with Windows line ends #3975

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

sideeffffect
Copy link
Contributor

@sideeffffect sideeffffect commented Nov 15, 2024

This is a precaution for cases when the .mill-version file can contain a Windows line end \r\n instead of the typical Unix line end \n. Without this fix, in such situation the script breaks in a spectacular and surprising way.

The error it was giving looked like this:

$ mill __.compile
curl: (3) URL using bad/illegal format or missing URL

Where mill is pointing to the wrapper script that I'm changing in this PR

This is a precaution for cases when the .mill-version file can contain a Windows line end `\r\n` instead of the typical Unix line end `\n`. Without this fix, in such situation the script breaks in a spectacular and surprising way.
@lihaoyi
Copy link
Member

lihaoyi commented Nov 16, 2024

Can you paste the error message you get when the issue this PR solves occurs into the PR description?

@sideeffffect
Copy link
Contributor Author

done

@lihaoyi
Copy link
Member

lihaoyi commented Nov 18, 2024

Thanks!

@lihaoyi lihaoyi merged commit e5c8778 into com-lihaoyi:main Nov 18, 2024
27 checks passed
@sideeffffect sideeffffect deleted the patch-1 branch November 18, 2024 00:31
@lefou lefou added this to the 0.12.3 milestone Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants