File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,8 @@ ENV ANDROID_NDK_ROOT $ANDROID_HOME/ndk-bundle
35
35
# # - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf
36
36
RUN echo 'hosts: files dns' > /etc/nsswitch.conf
37
37
38
- ENV GOLANG_VERSION 1.16.2
38
+ ENV GOLANG_VERSION 1.15.10
39
+ ENV GOLANG_SHA256 c1dbca6e0910b41d61a95bf9878f6d6e93d15d884c226b91d9d4b1113c10dd65
39
40
40
41
RUN set -eux; \
41
42
apt-get update; \
@@ -66,7 +67,7 @@ RUN set -eux; \
66
67
esac; \
67
68
\
68
69
wget -O go.tgz "https://golang.org/dl/go$GOLANG_VERSION.src.tar.gz" ; \
69
- echo '37ca14287a23cb8ba2ac3f5c3dd8adbc1f7a54b9701a57824bf19a0b271f83ea *go.tgz' | sha256sum -c -; \
70
+ echo "$GOLANG_SHA256 *go.tgz" | sha256sum -c -; \
70
71
tar -C /usr/local -xzf go.tgz; \
71
72
rm go.tgz; \
72
73
\
@@ -88,8 +89,8 @@ ENV PATH $GOMOBILEPATH/bin:$PATH
88
89
RUN mkdir -p "$GOMOBILEPATH/src" "$GOMOBILEPATH/bin" "$GOMOBILEPATH/pkg" && chmod -R 777 "$GOMOBILEPATH"
89
90
90
91
# install gomobile
91
- RUN go install golang.org/x/mobile/cmd/gomobile@latest
92
- RUN go install golang.org/x/mobile/cmd/gobind@latest
92
+ RUN go get golang.org/x/mobile/cmd/gomobile
93
+ RUN go get golang.org/x/mobile/cmd/gobind
93
94
94
95
# RUN gomobile init
95
96
You can’t perform that action at this time.
0 commit comments