Skip to content

Commit 96e7fb3

Browse files
committed
Update
1 parent a02975a commit 96e7fb3

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

.gitpod.Dockerfile

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
FROM 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+
38
USER 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

.gitpod.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@ image:
22
file: .gitpod.Dockerfile
33

44
tasks:
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

1216
vscode:
1317
extensions:

0 commit comments

Comments
 (0)