File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,9 @@ ARG SWIFT_WEBROOT=https://download.swift.org/development
35
35
# Because of https://bugs.swift.org/browse/SR-14872 we need adjust tar options.
36
36
FROM base AS base-amd64
37
37
ARG OS_ARCH_SUFFIX=
38
- ARG ADDITIONAL_TAR_OPTIONS="--strip-components=1"
39
38
40
39
FROM base AS base-arm64
41
40
ARG OS_ARCH_SUFFIX=-aarch64
42
- ARG ADDITIONAL_TAR_OPTIONS=
43
41
44
42
FROM base-$TARGETARCH AS final
45
43
@@ -61,7 +59,7 @@ RUN set -e; \
61
59
&& curl -fSsL https://swift.org/keys/all-keys.asc | gpg --import - \
62
60
&& gpg --batch --verify latest_toolchain.tar.gz.sig latest_toolchain.tar.gz \
63
61
# - Unpack the toolchain, set libs permissions, and clean up.
64
- && tar -xzf latest_toolchain.tar.gz --directory / ${ADDITIONAL_TAR_OPTIONS} \
62
+ && tar -xzf latest_toolchain.tar.gz --directory / --strip-components=1 \
65
63
&& chmod -R o+r /usr/lib/swift \
66
64
&& rm -rf "$GNUPGHOME" latest_toolchain.tar.gz.sig latest_toolchain.tar.gz \
67
65
Original file line number Diff line number Diff line change @@ -37,11 +37,9 @@ ARG SWIFT_WEBROOT=https://download.swift.org/development
37
37
# Because of https://bugs.swift.org/browse/SR-14872 we need adjust tar options.
38
38
FROM base AS base-amd64
39
39
ARG OS_ARCH_SUFFIX=
40
- ARG ADDITIONAL_TAR_OPTIONS="--strip-components=1"
41
40
42
41
FROM base AS base-arm64
43
42
ARG OS_ARCH_SUFFIX=-aarch64
44
- ARG ADDITIONAL_TAR_OPTIONS=
45
43
46
44
FROM base-$TARGETARCH AS final
47
45
@@ -66,7 +64,7 @@ RUN set -e; \
66
64
&& curl -fSsL https://swift.org/keys/all-keys.asc | gpg --import - \
67
65
&& gpg --batch --verify latest_toolchain.tar.gz.sig latest_toolchain.tar.gz \
68
66
# - Unpack the toolchain, set libs permissions, and clean up.
69
- && tar -xzf latest_toolchain.tar.gz --directory / ${ADDITIONAL_TAR_OPTIONS} \
67
+ && tar -xzf latest_toolchain.tar.gz --directory / --strip-components=1 \
70
68
&& chmod -R o+r /usr/lib/swift \
71
69
&& rm -rf "$GNUPGHOME" latest_toolchain.tar.gz.sig latest_toolchain.tar.gz \
72
70
&& apt-get purge --auto-remove -y curl
You can’t perform that action at this time.
0 commit comments