diff --git a/.github/actions/build-dependencies/action.yaml b/.github/actions/build-dependencies/action.yaml index e81417094e3f..35fe4b413305 100644 --- a/.github/actions/build-dependencies/action.yaml +++ b/.github/actions/build-dependencies/action.yaml @@ -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.3.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 diff --git a/Vagrantfile b/Vagrantfile index 58951af8bd72..5812b3cd667e 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -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.3" OPA_VERSION="v0.63.0" KUBECTL_VERSION="v1.29" diff --git a/builder/Dockerfile.k8s b/builder/Dockerfile.k8s index c6178d54bcb9..e1312e7d52b5 100644 --- a/builder/Dockerfile.k8s +++ b/builder/Dockerfile.k8s @@ -1,4 +1,4 @@ -FROM golang:1.21 +FROM golang:1.22.3 RUN go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.13.0 diff --git a/builder/Dockerfile.protoc b/builder/Dockerfile.protoc index a7d3d5730ce3..01b4afc51b52 100644 --- a/builder/Dockerfile.protoc +++ b/builder/Dockerfile.protoc @@ -1,4 +1,4 @@ -FROM golang:1.21 +FROM golang:1.22.3 ARG PROTOC_VERSION="23.4" ARG PROTOC_ZIP="protoc-${PROTOC_VERSION}-linux-x86_64.zip" diff --git a/builder/Dockerfile.ubuntu-tracee-make b/builder/Dockerfile.ubuntu-tracee-make index 0030365b4b7b..c8f1359d5401 100644 --- a/builder/Dockerfile.ubuntu-tracee-make +++ b/builder/Dockerfile.ubuntu-tracee-make @@ -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.3.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 diff --git a/docs/contributing/building/building.md b/docs/contributing/building/building.md index 420bf25465a8..5d0220f2196d 100644 --- a/docs/contributing/building/building.md +++ b/docs/contributing/building/building.md @@ -13,7 +13,7 @@ 2. Building **dependencies** 1. **clang** && **llvm** (12, 13 or 14) - 1. **golang** (1.21) + 1. **golang** (1.22.3) 1. **libelf** and **libelf-dev** (or elfutils-libelf and elfutils-libelf-devel) 1. **zlib1g** and **zlib1g-dev** diff --git a/tests/e2e-install-deps.sh b/tests/e2e-install-deps.sh index c361bd0a20ca..88fa8467c031 100755 --- a/tests/e2e-install-deps.sh +++ b/tests/e2e-install-deps.sh @@ -214,9 +214,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.3.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.3.linux-arm64.tar.gz" fi GO_FILE=$(basename $GO_URL)