File tree 8 files changed +13
-53
lines changed
8 files changed +13
-53
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ RUN apk add --no-cache ca-certificates
4
4
5
5
ENV GOLANG_VERSION 1.10.1
6
6
7
- # no-pic .patch: https://golang.org/issue/14851 (Go 1.8 & 1.7 )
8
- COPY *.patch /go-alpine-patches/
7
+ # make-sure-R0-is-zero-before-main-on-ppc64le .patch: https://github.com/golang/go/commit/9aea0e89b6df032c29d0add8d69ba2c95f1106d9 (Go 1.9 )
8
+ # COPY *.patch /go-alpine-patches/
9
9
10
10
RUN set -eux; \
11
11
apk add --no-cache --virtual .build-deps \
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ RUN apk add --no-cache ca-certificates
4
4
5
5
ENV GOLANG_VERSION 1.9.5
6
6
7
- # no-pic .patch: https://golang.org/issue/14851 (Go 1.8 & 1.7 )
7
+ # make-sure-R0-is-zero-before-main-on-ppc64le .patch: https://github.com/golang/go/commit/9aea0e89b6df032c29d0add8d69ba2c95f1106d9 (Go 1.9 )
8
8
COPY *.patch /go-alpine-patches/
9
9
10
10
RUN set -eux; \
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ RUN apk add --no-cache ca-certificates
4
4
5
5
ENV GOLANG_VERSION 1.9.5
6
6
7
- # no-pic .patch: https://golang.org/issue/14851 (Go 1.8 & 1.7 )
7
+ # make-sure-R0-is-zero-before-main-on-ppc64le .patch: https://github.com/golang/go/commit/9aea0e89b6df032c29d0add8d69ba2c95f1106d9 (Go 1.9 )
8
8
COPY *.patch /go-alpine-patches/
9
9
10
10
RUN set -eux; \
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ RUN apk add --no-cache ca-certificates
4
4
5
5
ENV GOLANG_VERSION %%VERSION%%
6
6
7
- # no-pic .patch: https://golang.org/issue/14851 (Go 1.8 & 1.7 )
7
+ # make-sure-R0-is-zero-before-main-on-ppc64le .patch: https://github.com/golang/go/commit/9aea0e89b6df032c29d0add8d69ba2c95f1106d9 (Go 1.9 )
8
8
COPY *.patch /go-alpine-patches/
9
9
10
10
RUN set -eux; \
Original file line number Diff line number Diff line change @@ -112,6 +112,14 @@ for version in "${versions[@]}"; do
112
112
;;
113
113
esac
114
114
115
+ (
116
+ shopt -s nullglob
117
+ variantPatches=( " $version /$variant /" * .patch )
118
+ if [ " ${# variantPatches[@]} " -eq 0 ]; then
119
+ sed -ri ' s/^COPY.*patch/#&/' " $version /$variant /Dockerfile"
120
+ fi
121
+ )
122
+
115
123
travisEnv=' \n - VERSION=' " $version VARIANT=$variant$travisEnv "
116
124
fi
117
125
done
You can’t perform that action at this time.
0 commit comments