File tree Expand file tree Collapse file tree 2 files changed +17
-8
lines changed
Expand file tree Collapse file tree 2 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 11FROM gitpod/workspace-go:latest
22
3+ ARG GITPOD_HOME_TMP="/home/gitpod/tmp"
4+ ARG GITPOD_HOME_GO="/home/gitpod/go"
5+ ARG GITPOD_HOME_GO_OLD="/home/gitpod/go-old"
6+ ARG GO_VERSION="1.20.1"
7+
38USER gitpod
49
5- RUN sudo apt update -q && \
6- rm -rf /home/gitpod/tmp && \
7- mkdir -p /home/gitpod/tmp && \
8- cd /home/gitpod/tmp && \
9- wget -q -O go.tar.gz https://go.dev/dl/go1.20.1 .linux-amd64.tar.gz && \
10+ RUN sudo apt-get update -q && \
11+ rm -rf ${GITPOD_HOME_TMP} && \
12+ mkdir -p ${GITPOD_HOME_TMP} && \
13+ cd ${GITPOD_HOME_TMP} && \
14+ wget -q -O go.tar.gz https://go.dev/dl/go${GO_VERSION} .linux-amd64.tar.gz && \
1015 tar zxf go.tar.gz && \
11- mv /home/gitpod/go /home/gitpod/go-old && \
16+ mv ${GITPOD_HOME_GO} ${GITPOD_HOME_GO_OLD} && \
1217 mv go /home/gitpod
Original file line number Diff line number Diff line change 22 file : .gitpod.Dockerfile
33
44tasks :
5- - name : update go and tools
5+ - name : initial
66 init :
77 go install github.com/go-task/task/v3/cmd/task@latest &&
88 go install honnef.co/go/tools/cmd/staticcheck@latest &&
99 go install golang.org/x/tools/cmd/goimports@latest &&
10- go install github.com/mgechev/revive@latest
10+ go install github.com/mgechev/revive@latest &&
11+ task build
12+ command :
13+ go version
14+
1115
1216vscode :
1317 extensions :
You can’t perform that action at this time.
0 commit comments