Skip to content

Commit 0b0a2d8

Browse files
committed
[dev] Update go to 1.16.3
1 parent 745dfbc commit 0b0a2d8

File tree

25 files changed

+36
-14
lines changed

25 files changed

+36
-14
lines changed

.gitpod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ tasks:
3232
- before: scripts/branch-namespace.sh
3333
init: yarn --network-timeout 100000 && yarn build
3434
- name: Go
35-
init: leeway exec --filter-type go -v -- go mod download
35+
init: leeway exec --filter-type go -v -- go mod verify
3636
openMode: split-right
3737
vscode:
3838
extensions:

.werft/run-integration-tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pod:
3636
- bash
3737
- -c
3838
- |
39-
39+
4040
echo "[prep] preparing config."
4141
4242
gcloud auth activate-service-account --key-file /mnt/secrets/gcp-sa/service-account.json
@@ -74,6 +74,6 @@ pod:
7474
echo "[prep|DONE]"
7575
7676
/entrypoint.sh -kubeconfig=/config/kubeconfig -namespace={{ .Annotations.namespace }} -username=$USERNAME 2>&1 | ts "[int-tests] "
77-
77+
7878
RC=${PIPESTATUS[0]}
7979
if [ $RC -eq 1 ]; then echo "[int-tests|FAIL]"; else echo "[int-tests|DONE]"; fi

.werft/wipe-devstaging.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pod:
2222
mountPath: /mnt/secrets/gcp-sa
2323
readOnly: true
2424
command:
25-
- bash
25+
- bash
2626
- -c
2727
- |
2828
sleep 1

components/blobserve/BUILD.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ packages:
1515
- GOOS=linux
1616
config:
1717
packaging: app
18+
buildCommand: ["go", "build", "-trimpath", "-ldflags='-buildid= -w -s'"]
1819
- name: docker
1920
type: docker
2021
deps:

components/content-service/BUILD.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ packages:
2828
- GOOS=linux
2929
config:
3030
packaging: app
31+
buildCommand: ["go", "build", "-trimpath", "-ldflags='-buildid= -w -s'"]
3132
- name: docker
3233
type: docker
3334
deps:

components/ee/cerc/BUILD.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ packages:
1212
- GOOS=linux
1313
config:
1414
packaging: app
15+
buildCommand: ["go", "build", "-trimpath", "-ldflags='-buildid= -w -s'"]
1516
- name: docker
1617
type: docker
1718
deps:

components/ee/ws-scheduler/BUILD.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ packages:
1414
- GOOS=linux
1515
config:
1616
packaging: app
17+
buildCommand: ["go", "build", "-trimpath", "-ldflags='-buildid= -w -s'"]
1718
- name: docker
1819
type: docker
1920
deps:

components/gitpod-cli/BUILD.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ packages:
1313
- components/gitpod-protocol/go:lib
1414
config:
1515
packaging: app
16+
buildCommand: ["go", "build", "-trimpath", "-ldflags='-buildid= -w -s'"]

components/gitpod-protocol/go/BUILD.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ packages:
1010
- GOOS=linux
1111
config:
1212
packaging: library
13-
buildFlags:
14-
- "-ldflags=-w"
13+
buildCommand: ["go", "build", "-trimpath", "-ldflags=-buildid="]

components/image-builder/BUILD.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ packages:
1515
- GOOS=linux
1616
config:
1717
packaging: app
18+
buildCommand: ["go", "build", "-trimpath", "-ldflags='-buildid= -w -s'"]
1819
- name: docker
1920
type: docker
2021
deps:

components/registry-facade/BUILD.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ packages:
1515
- GOOS=linux
1616
config:
1717
packaging: app
18+
buildCommand: ["go", "build", "-trimpath", "-ldflags='-buildid= -w -s'"]
1819
- name: lib
1920
type: go
2021
srcs:

components/service-waiter/BUILD.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ packages:
1212
- GOOS=linux
1313
config:
1414
packaging: app
15+
buildCommand: ["go", "build", "-trimpath", "-ldflags='-buildid= -w -s'"]
1516
- name: docker
1617
type: docker
1718
deps:

components/supervisor/BUILD.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ packages:
1616
- CGO_ENABLED=0
1717
- GOOS=linux
1818
config:
19-
buildFlags:
20-
- "-ldflags=-w"
19+
buildCommand: ["go", "build", "-trimpath", "-ldflags='-buildid= -w -s'"]
2120
- name: docker
2221
type: docker
2322
srcs:

components/ws-daemon/BUILD.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ packages:
1717
- GOOS=linux
1818
config:
1919
packaging: app
20+
buildCommand: ["go", "build", "-trimpath", "-ldflags=-buildid="]
21+
2022
- name: content-initializer
2123
type: go
2224
srcs:
@@ -37,6 +39,7 @@ packages:
3739
config:
3840
packaging: app
3941
dontTest: true
42+
buildCommand: ["go", "build", "-trimpath", "-ldflags=-buildid="]
4043
- name: docker
4144
type: docker
4245
deps:

components/ws-daemon/seccomp-profile-installer/BUILD.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ packages:
1010
- GOOS=linux
1111
config:
1212
packaging: app
13+
buildCommand: ["go", "build", "-trimpath", "-ldflags='-buildid= -w -s'"]
1314
- name: profile
1415
type: generic
1516
deps:

components/ws-manager/BUILD.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ packages:
1818
- GOOS=linux
1919
config:
2020
packaging: app
21-
buildCommand: ["go", "build", "-trimpath", "-ldflags", "-w -extldflags \"-static\""]
21+
buildCommand: ["go", "build", "-trimpath", "-ldflags='-buildid= -w -s'"]
2222
- name: docker
2323
type: docker
2424
deps:

components/ws-proxy/BUILD.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ packages:
1717
- GOOS=linux
1818
config:
1919
packaging: app
20+
buildCommand: ["go", "build", "-trimpath", "-ldflags='-buildid= -w -s'"]
2021
- name: docker
2122
type: docker
2223
srcs:

dev/addlicense/BUILD.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ packages:
1212
config:
1313
dontLint: true
1414
dontTest: true
15+
buildCommand: ["go", "build", "-trimpath", "-ldflags='-buildid= -w -s'"]

dev/blowtorch/BUILD.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ packages:
1010
- GOOS=linux
1111
config:
1212
packaging: app
13+
buildCommand: ["go", "build", "-trimpath", "-ldflags='-buildid= -w -s'"]

dev/gpctl/BUILD.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ packages:
1818
config:
1919
packaging: app
2020
dontTest: true
21+
buildCommand: ["go", "build", "-trimpath", "-ldflags='-buildid= -w -s'"]

dev/image/Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,13 @@ ENV PATH=/home/gitpod/.nvm/versions/node/v${GITPOD_NODE_VERSION}/bin:$PATH
114114
# Fix the Go version
115115
ENV GOPATH=$HOME/go-packages
116116
ENV GOROOT=$HOME/go
117-
RUN go get golang.org/dl/go1.16 && \
118-
go1.16 download && \
119-
mv $(which go1.16) $(which go)
120-
ENV GOPATH=/workspace/go \
121-
PATH=/workspace/go/bin:$PATH
117+
RUN go get golang.org/dl/go1.16.3 \
118+
&& go1.16.3 download \
119+
&& mv $(which go1.16.3) $(which go)
120+
ENV GOPATH=/workspace/go
121+
ENV PATH=/workspace/go/bin:$PATH
122+
123+
ENV GOFLAGS="-mod=readonly"
122124

123125
## Register leeway autocompletion in bashrc
124126
RUN bash -c "echo . \<\(leeway bash-completion\) >> ~/.bashrc"

dev/loadgen/BUILD.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ packages:
1414
- GOOS=linux
1515
config:
1616
packaging: app
17+
buildCommand: ["go", "build", "-trimpath", "-ldflags='-buildid= -w -s'"]

dev/poolkeeper/BUILD.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ packages:
1212
- components/common-go:lib
1313
config:
1414
packaging: app
15+
buildCommand: ["go", "build", "-trimpath", "-ldflags='-buildid= -w -s'"]
1516
- name: docker
1617
type: docker
1718
deps:

dev/sweeper/BUILD.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ packages:
1010
- GOOS=linux
1111
config:
1212
packaging: app
13+
buildCommand: ["go", "build", "-trimpath", "-ldflags='-buildid= -w -s'"]
1314
- name: docker
1415
type: docker
1516
deps:

install/installer/BUILD.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ packages:
99
env:
1010
- CGO_ENABLED=0
1111
- GOOS=linux
12+
config:
13+
packaging: app
14+
buildCommand: ["go", "build", "-trimpath", "-ldflags='-buildid= -w -s'"]
1215
- name: docker
1316
type: docker
1417
srcs:

0 commit comments

Comments
 (0)