Skip to content

Commit e50577f

Browse files
committed
trying go1.15 since 1.16 has issues (golang/go#44500)
1 parent 39b211e commit e50577f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Dockerfile

+5-4
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ ENV ANDROID_NDK_ROOT $ANDROID_HOME/ndk-bundle
3535
## - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf
3636
RUN echo 'hosts: files dns' > /etc/nsswitch.conf
3737

38-
ENV GOLANG_VERSION 1.16.2
38+
ENV GOLANG_VERSION 1.15.10
39+
ENV GOLANG_SHA256 c1dbca6e0910b41d61a95bf9878f6d6e93d15d884c226b91d9d4b1113c10dd65
3940

4041
RUN set -eux; \
4142
apt-get update; \
@@ -66,7 +67,7 @@ RUN set -eux; \
6667
esac; \
6768
\
6869
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 -; \
7071
tar -C /usr/local -xzf go.tgz; \
7172
rm go.tgz; \
7273
\
@@ -88,8 +89,8 @@ ENV PATH $GOMOBILEPATH/bin:$PATH
8889
RUN mkdir -p "$GOMOBILEPATH/src" "$GOMOBILEPATH/bin" "$GOMOBILEPATH/pkg" && chmod -R 777 "$GOMOBILEPATH"
8990

9091
# 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
9394

9495
# RUN gomobile init
9596

0 commit comments

Comments
 (0)