-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Heredocs (<<EOF) syntax in samples doesn't work on Windows when using default Git line ending settings #5402
Comments
I'm happy with any option. I noticed that this worked poorly on Windows when I made it was too stubborn to relent. Such surprising behavior for me. |
Here's the issue for that - moby/buildkit#4282 |
[Triage] Another option is to specify the line ending for these files specifically with the However, this could blow up if a user copies this to their repo and doesn't include the gitattributes. Since this doesn't provide a ton of value, we should just remove the Heredocs. |
Collapsed as doesn't contribute much to the discussion
FWIW, That said:
|
As you mentioned, @polarathene, the primary purpose of the samples is to be easy to run and understand. A syntax that depends on a specific line ending to work is a no-go. These have been removed from the samples with #5882, so I'm closing the issue as complete. |
dotnet-docker/samples/releasesapi/Dockerfile.debian-cross-arm64-x64
Lines 6 to 10 in 3e8c396
Proposal: Remove heredocs in samples or provide a note about this in the samples README.
Workaround: Switch the file to LF line endings using your editor before building the sample.
The text was updated successfully, but these errors were encountered: