Skip to content

Commit 5f55811

Browse files
committed
Normalize line endings for aggregate checksum files
1 parent 4ae9581 commit 5f55811

File tree

185 files changed

+188
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

185 files changed

+188
-1
lines changed

eng/dockerfile-templates/Dockerfile.linux.validate-checksum

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,12 @@ if ARGS["sha-var-name"]:{{ARGS["sha-var-name"]}}='{{ARGS["sha"]}}' \
4040
&& }}echo "{{shaValue}} {{ARGS["file"]}}" | sha{{ARGS["sha-function"]}}sum -c -^
4141
elif (ARGS["file"]):{{
4242
if (ARGS["sha-file-is-aggregate"]):{{
43+
_ As a temporary workaround, these commands need to normalize line endings in the checksum files.
44+
Remove the `sed` and `gsub` calls when https://github.com/dotnet/core/issues/9958 is fixed. ^
4345
if (isAlpine)
4446
:awk -v file="{{ARGS["file"]}}" '{gsub(/\r/, "")} $2 == file' {{ARGS["sha-file"]}} | sha{{ARGS["sha-function"]}}sum -c^
4547
else
46-
:sha{{ARGS["sha-function"]}}sum -c {{ARGS["sha-file"]}} --ignore-missing}}^
48+
:sed -i 's/\r$//' {{ARGS["sha-file"]}} \
49+
&& sha{{ARGS["sha-function"]}}sum -c {{ARGS["sha-file"]}} --ignore-missing}}^
4750
else
4851
:sha{{ARGS["sha-function"]}}sum -c {{ARGS["sha-file"]}}}}}}

src/aspnet/8.0/azurelinux3.0-distroless-composite-extra/amd64/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ RUN aspnetcore_version=8.0.17 \
1414
&& curl --fail --show-error --location \
1515
--remote-name https://builds.dotnet.microsoft.com/dotnet/aspnetcore/Runtime/$aspnetcore_version/aspnetcore-runtime-composite-$aspnetcore_version-linux-x64.tar.gz \
1616
--remote-name https://builds.dotnet.microsoft.com/dotnet/checksums/8.0.17-sha.txt \
17+
&& sed -i 's/\r$//' 8.0.17-sha.txt \
1718
&& sha512sum -c 8.0.17-sha.txt --ignore-missing \
1819
&& mkdir --parents /usr/share/dotnet \
1920
&& tar --gzip --extract --no-same-owner --file aspnetcore-runtime-composite-$aspnetcore_version-linux-x64.tar.gz --directory /usr/share/dotnet \

src/aspnet/8.0/azurelinux3.0-distroless-composite-extra/arm64v8/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ RUN aspnetcore_version=8.0.17 \
1414
&& curl --fail --show-error --location \
1515
--remote-name https://builds.dotnet.microsoft.com/dotnet/aspnetcore/Runtime/$aspnetcore_version/aspnetcore-runtime-composite-$aspnetcore_version-linux-arm64.tar.gz \
1616
--remote-name https://builds.dotnet.microsoft.com/dotnet/checksums/8.0.17-sha.txt \
17+
&& sed -i 's/\r$//' 8.0.17-sha.txt \
1718
&& sha512sum -c 8.0.17-sha.txt --ignore-missing \
1819
&& mkdir --parents /usr/share/dotnet \
1920
&& tar --gzip --extract --no-same-owner --file aspnetcore-runtime-composite-$aspnetcore_version-linux-arm64.tar.gz --directory /usr/share/dotnet \

src/aspnet/8.0/azurelinux3.0-distroless-composite/amd64/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ RUN aspnetcore_version=8.0.17 \
1414
&& curl --fail --show-error --location \
1515
--remote-name https://builds.dotnet.microsoft.com/dotnet/aspnetcore/Runtime/$aspnetcore_version/aspnetcore-runtime-composite-$aspnetcore_version-linux-x64.tar.gz \
1616
--remote-name https://builds.dotnet.microsoft.com/dotnet/checksums/8.0.17-sha.txt \
17+
&& sed -i 's/\r$//' 8.0.17-sha.txt \
1718
&& sha512sum -c 8.0.17-sha.txt --ignore-missing \
1819
&& mkdir --parents /usr/share/dotnet \
1920
&& tar --gzip --extract --no-same-owner --file aspnetcore-runtime-composite-$aspnetcore_version-linux-x64.tar.gz --directory /usr/share/dotnet \

src/aspnet/8.0/azurelinux3.0-distroless-composite/arm64v8/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ RUN aspnetcore_version=8.0.17 \
1414
&& curl --fail --show-error --location \
1515
--remote-name https://builds.dotnet.microsoft.com/dotnet/aspnetcore/Runtime/$aspnetcore_version/aspnetcore-runtime-composite-$aspnetcore_version-linux-arm64.tar.gz \
1616
--remote-name https://builds.dotnet.microsoft.com/dotnet/checksums/8.0.17-sha.txt \
17+
&& sed -i 's/\r$//' 8.0.17-sha.txt \
1718
&& sha512sum -c 8.0.17-sha.txt --ignore-missing \
1819
&& mkdir --parents /usr/share/dotnet \
1920
&& tar --gzip --extract --no-same-owner --file aspnetcore-runtime-composite-$aspnetcore_version-linux-arm64.tar.gz --directory /usr/share/dotnet \

src/aspnet/8.0/azurelinux3.0-distroless-extra/amd64/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ RUN aspnetcore_version=8.0.17 \
1414
&& curl --fail --show-error --location \
1515
--remote-name https://builds.dotnet.microsoft.com/dotnet/aspnetcore/Runtime/$aspnetcore_version/aspnetcore-runtime-$aspnetcore_version-linux-x64.tar.gz \
1616
--remote-name https://builds.dotnet.microsoft.com/dotnet/checksums/8.0.17-sha.txt \
17+
&& sed -i 's/\r$//' 8.0.17-sha.txt \
1718
&& sha512sum -c 8.0.17-sha.txt --ignore-missing \
1819
&& mkdir --parents /dotnet \
1920
&& tar --gzip --extract --no-same-owner --file aspnetcore-runtime-$aspnetcore_version-linux-x64.tar.gz --directory /dotnet ./shared/Microsoft.AspNetCore.App \

src/aspnet/8.0/azurelinux3.0-distroless-extra/arm64v8/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ RUN aspnetcore_version=8.0.17 \
1414
&& curl --fail --show-error --location \
1515
--remote-name https://builds.dotnet.microsoft.com/dotnet/aspnetcore/Runtime/$aspnetcore_version/aspnetcore-runtime-$aspnetcore_version-linux-arm64.tar.gz \
1616
--remote-name https://builds.dotnet.microsoft.com/dotnet/checksums/8.0.17-sha.txt \
17+
&& sed -i 's/\r$//' 8.0.17-sha.txt \
1718
&& sha512sum -c 8.0.17-sha.txt --ignore-missing \
1819
&& mkdir --parents /dotnet \
1920
&& tar --gzip --extract --no-same-owner --file aspnetcore-runtime-$aspnetcore_version-linux-arm64.tar.gz --directory /dotnet ./shared/Microsoft.AspNetCore.App \

src/aspnet/8.0/azurelinux3.0-distroless/amd64/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ RUN aspnetcore_version=8.0.17 \
1414
&& curl --fail --show-error --location \
1515
--remote-name https://builds.dotnet.microsoft.com/dotnet/aspnetcore/Runtime/$aspnetcore_version/aspnetcore-runtime-$aspnetcore_version-linux-x64.tar.gz \
1616
--remote-name https://builds.dotnet.microsoft.com/dotnet/checksums/8.0.17-sha.txt \
17+
&& sed -i 's/\r$//' 8.0.17-sha.txt \
1718
&& sha512sum -c 8.0.17-sha.txt --ignore-missing \
1819
&& mkdir --parents /dotnet \
1920
&& tar --gzip --extract --no-same-owner --file aspnetcore-runtime-$aspnetcore_version-linux-x64.tar.gz --directory /dotnet ./shared/Microsoft.AspNetCore.App \

src/aspnet/8.0/azurelinux3.0-distroless/arm64v8/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ RUN aspnetcore_version=8.0.17 \
1414
&& curl --fail --show-error --location \
1515
--remote-name https://builds.dotnet.microsoft.com/dotnet/aspnetcore/Runtime/$aspnetcore_version/aspnetcore-runtime-$aspnetcore_version-linux-arm64.tar.gz \
1616
--remote-name https://builds.dotnet.microsoft.com/dotnet/checksums/8.0.17-sha.txt \
17+
&& sed -i 's/\r$//' 8.0.17-sha.txt \
1718
&& sha512sum -c 8.0.17-sha.txt --ignore-missing \
1819
&& mkdir --parents /dotnet \
1920
&& tar --gzip --extract --no-same-owner --file aspnetcore-runtime-$aspnetcore_version-linux-arm64.tar.gz --directory /dotnet ./shared/Microsoft.AspNetCore.App \

src/aspnet/8.0/azurelinux3.0/amd64/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ RUN aspnetcore_version=8.0.17 \
1212
&& curl --fail --show-error --location \
1313
--remote-name https://builds.dotnet.microsoft.com/dotnet/aspnetcore/Runtime/$aspnetcore_version/aspnetcore-runtime-$aspnetcore_version-linux-x64.tar.gz \
1414
--remote-name https://builds.dotnet.microsoft.com/dotnet/checksums/8.0.17-sha.txt \
15+
&& sed -i 's/\r$//' 8.0.17-sha.txt \
1516
&& sha512sum -c 8.0.17-sha.txt --ignore-missing \
1617
&& mkdir --parents /dotnet \
1718
&& tar --gzip --extract --no-same-owner --file aspnetcore-runtime-$aspnetcore_version-linux-x64.tar.gz --directory /dotnet ./shared/Microsoft.AspNetCore.App \

0 commit comments

Comments
 (0)