Skip to content

Heredocs (<<EOF) syntax in samples doesn't work on Windows when using default Git line ending settings #5402

@lbussell

Description

@lbussell

RUN <<EOF
dpkg --add-architecture amd64
apt-get update
apt-get install -y clang zlib1g-dev zlib1g-dev:amd64 gcc-x86-64-linux-gnu llvm
EOF

  1. This syntax is only used in the releasesapi samples and isn't consistent with our other samples.
  2. This syntax does not work on Windows when using Git's default "checkout with CRLF, commit LF" setting.

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.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions