Skip to content

Commit

Permalink
go: require v1.20
Browse files Browse the repository at this point in the history
v1.21.0 has been released, so v1.19 is now EOL.

This commit brings back manual Go installation, since semaphore only
updates versions every once in a while.

Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
  • Loading branch information
lmb committed Aug 9, 2023
1 parent 9383157 commit ddcc405
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ blocks:
prologue:
commands:
- sudo sh -c 'swapoff -a && fallocate -l 2G /swapfile && chmod 0600 /swapfile && mkswap /swapfile && swapon /swapfile'
- sem-version go 1.20.1
- sudo mkdir -p /usr/local/golang/1.21.0 && curl -fL "https://go.dev/dl/go1.21.0.linux-amd64.tar.gz" | sudo tar -xz -C /usr/local/golang/1.21.0
- sem-version go 1.21.0
- export PATH="$PATH:$(go env GOPATH)/bin"
- checkout
# Disabled, see https://github.com/cilium/ebpf/issues/898
Expand Down Expand Up @@ -60,7 +61,7 @@ blocks:
execution_time_limit:
minutes: 10
commands:
- sem-version go 1.19.6
- sem-version go 1.20.6
- go test -v ./cmd/bpf2go
- gotestsum --raw-command --ignore-non-json-output-lines --junitfile junit.xml -- ./run-tests.sh $CI_MAX_KERNEL_VERSION -short -count 1 -json ./...
- name: Run unit tests
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/cilium/ebpf

go 1.19
go 1.20

require (
github.com/frankban/quicktest v1.14.5
Expand Down

0 comments on commit ddcc405

Please sign in to comment.