Skip to content

Commit

Permalink
Bump minimum required Go version to 1.18, test using 1.19
Browse files Browse the repository at this point in the history
Drop build tags from _fuzz.go as they're no longer required.

Signed-off-by: Timo Beckers <timo@isovalent.com>
  • Loading branch information
ti-mo committed Aug 23, 2022
1 parent 6660b7a commit 9da42c2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ blocks:
prologue:
commands:
- sudo sh -c 'swapoff -a && fallocate -l 2G /swapfile && chmod 0600 /swapfile && mkswap /swapfile && swapon /swapfile'
- sudo mkdir -p /usr/local/golang/1.18 && curl -fL "https://go.dev/dl/go1.18.linux-amd64.tar.gz" | sudo tar -xz -C /usr/local/golang/1.18
- sem-version go 1.18
- sudo mkdir -p /usr/local/golang/1.19 && curl -fL "https://go.dev/dl/go1.19.linux-amd64.tar.gz" | sudo tar -xz -C /usr/local/golang/1.19
- sem-version go 1.19
- export PATH="$PATH:$(go env GOPATH)/bin"
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.45.0
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.48.0
- go install gotest.tools/gotestsum@v1.8.1
- checkout
- cache restore
Expand Down Expand Up @@ -61,7 +61,7 @@ blocks:
- cache store
- name: Run unit tests on previous stable Go
commands:
- sem-version go 1.17
- sem-version go 1.18
- go test -v ./cmd/bpf2go -run TestRun
- 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
3 changes: 0 additions & 3 deletions btf/fuzz_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
//go:build go1.18
// +build go1.18

package btf

import (
Expand Down
3 changes: 0 additions & 3 deletions fuzz_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
//go:build go1.18
// +build go1.18

package ebpf

import (
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.17
go 1.18

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

0 comments on commit 9da42c2

Please sign in to comment.