Skip to content

Commit

Permalink
chore: bump go to 1.22.2
Browse files Browse the repository at this point in the history
  • Loading branch information
geyslan committed Apr 23, 2024
1 parent 1659f11 commit 7c68951
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/actions/build-dependencies/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ runs:
run: |
sudo rm -f /usr/bin/go
sudo rm -f /usr/bin/gofmt
curl -L -o /tmp/golang.tar.gz https://go.dev/dl/go1.21.6.linux-amd64.tar.gz
curl -L -o /tmp/golang.tar.gz https://go.dev/dl/go1.22.2.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf /tmp/golang.tar.gz
sudo ln -s /usr/local/go/bin/go /usr/bin/go
sudo ln -s /usr/local/go/bin/gofmt /usr/bin/gofmt
Expand Down
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Vagrant.configure("2") do |config|

config.vm.provision "shell", privileged: true, inline: <<-SHELL
VAGRANT_HOME="/home/vagrant"
GO_VERSION="1.21.6"
GO_VERSION="1.22.2"
OPA_VERSION="v0.63.0"
KUBECTL_VERSION="v1.29"
Expand Down
2 changes: 1 addition & 1 deletion builder/Dockerfile.k8s
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21
FROM golang:1.22.2

RUN go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.13.0

Expand Down
2 changes: 1 addition & 1 deletion builder/Dockerfile.protoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21
FROM golang:1.22.2

ARG PROTOC_VERSION="23.4"
ARG PROTOC_ZIP="protoc-${PROTOC_VERSION}-linux-x86_64.zip"
Expand Down
2 changes: 1 addition & 1 deletion builder/Dockerfile.ubuntu-tracee-make
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ RUN export uid=$uid gid=$gid && \
RUN export DEBIAN_FRONTEND=noninteractive && \
altarch=$(uname -m | sed 's:x86_64:amd64:g' | sed 's:aarch64:arm64:g') && \
apt-get update && \
curl -L -o /tmp/golang.tar.xz https://go.dev/dl/go1.21.5.linux-${altarch}.tar.gz && \
curl -L -o /tmp/golang.tar.xz https://go.dev/dl/go1.22.2.linux-${altarch}.tar.gz && \
tar -C /usr/local -xzf /tmp/golang.tar.xz && \
update-alternatives --install /usr/bin/go go /usr/local/go/bin/go 1 && \
update-alternatives --install /usr/bin/gofmt gofmt /usr/local/go/bin/gofmt 1
Expand Down
2 changes: 1 addition & 1 deletion docs/contributing/building/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
2. Building **dependencies**

1. **clang** && **llvm** (12, 13 or 14)
1. **golang** (1.21)
1. **golang** (1.22.2)
1. **libelf** and **libelf-dev**
(or elfutils-libelf and elfutils-libelf-devel)
1. **zlib1g** and **zlib1g-dev**
Expand Down
2 changes: 1 addition & 1 deletion signatures/helpers/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/aquasecurity/tracee/signatures/helpers

go 1.21
go 1.22.2

require github.com/aquasecurity/tracee/types v0.0.0-20240122122429-7f84f526758d
10 changes: 10 additions & 0 deletions signatures/helpers/go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
github.com/aquasecurity/tracee/types v0.0.0-20240122122429-7f84f526758d h1:6CQjy5G6Cj/VKm8RP1uZnBZxDgfyGo15HfWFnYrkGro=
github.com/aquasecurity/tracee/types v0.0.0-20240122122429-7f84f526758d/go.mod h1:J0f9nzJWrFmFgMoK0s4Yirfh82vfKMatXytd1YdfU2I=
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
4 changes: 2 additions & 2 deletions tests/e2e-install-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@ install_clang_from_github() {

install_golang_from_github() {
if [[ $ARCH == x86_64 ]]; then
GO_URL="https://go.dev/dl/go1.21.6.linux-amd64.tar.gz"
GO_URL="https://go.dev/dl/go1.22.2.linux-amd64.tar.gz"
else
GO_URL="https://go.dev/dl/go1.21.6.linux-arm64.tar.gz"
GO_URL="https://go.dev/dl/go1.22.2.linux-arm64.tar.gz"
fi

GO_FILE=$(echo $(basename $GO_URL))
Expand Down
2 changes: 1 addition & 1 deletion types/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/aquasecurity/tracee/types

go 1.21
go 1.22.2

require github.com/stretchr/testify v1.7.0

Expand Down

0 comments on commit 7c68951

Please sign in to comment.