Skip to content

Commit

Permalink
Switch to go 1.21
Browse files Browse the repository at this point in the history
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
  • Loading branch information
saschagrunert committed Aug 30, 2023
1 parent 5715433 commit 6a22787
Show file tree
Hide file tree
Showing 13 changed files with 117 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
types: [published]
pull_request:
env:
GO_VERSION: '1.20'
GO_VERSION: '1.21'
NIX_VERSION: '2.15.1'
BOM_VERSION: v0.5.1

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/olm_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- main
pull_request:
env:
GO_VERSION: '1.20'
GO_VERSION: '1.21'
KIND_IMG_TAG: v1.27.3

permissions: {}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- main
pull_request:
env:
GO_VERSION: '1.20'
GO_VERSION: '1.21'

permissions: {}

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ REPO_INFRA_VERSION = v0.2.5
KUSTOMIZE_VERSION = 5.1.0
OPERATOR_SDK_VERSION ?= v1.25.0
ZEITGEIST_VERSION = v0.4.1
CI_IMAGE ?= golang:1.20
CI_IMAGE ?= golang:1.21

CONTROLLER_GEN_CMD := CGO_LDFLAGS= $(GO) run -tags generate sigs.k8s.io/controller-tools/cmd/controller-gen

Expand Down
2 changes: 1 addition & 1 deletion dependencies.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: go
version: 1.20
version: 1.21
refPaths:
- path: go.mod
match: go
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 sigs.k8s.io/security-profiles-operator

go 1.20
go 1.21

require (
github.com/acobaugh/osrelease v0.1.0
Expand Down
98 changes: 98 additions & 0 deletions go.sum

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions hack/ci/Vagrantfile-fedora
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ Vagrant.configure("2") do |config|
# Use a non-localhost DNS to avoid cluster DNS lookup loops
echo "nameserver 8.8.8.8" > /etc/resolv.conf
GO_VERSION=1.20
curl -sSfL -o- https://dl.google.com/go/go"$GO_VERSION".linux-amd64.tar.gz |
GO_VERSION=1.21
curl -sSfL -o- https://go.dev/dl/go$GO_VERSION.0.linux-amd64.tar.gz |
tar xfz - -C /usr/local
echo 'export PATH=$PATH:/usr/local/go/bin' >> /etc/profile
Expand Down
4 changes: 2 additions & 2 deletions hack/ci/Vagrantfile-flatcar
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ Vagrant.configure("2") do |config|
crictl --runtime-endpoint="unix:///run/containerd/containerd.sock" images
# Install Go
GO_VERSION=1.20
GO_VERSION=1.21
mkdir /opt/go
curl -sSfL -o- https://golang.org/dl/go$GO_VERSION.linux-amd64.tar.gz | tar xfz - -C /opt
curl -sSfL -o- https://go.dev/dl/go$GO_VERSION.0.linux-amd64.tar.gz | tar xfz - -C /opt
# Configure the kernel modules
cat <<EOF | tee /etc/modules-load.d/k8s.conf
Expand Down
4 changes: 2 additions & 2 deletions hack/ci/Vagrantfile-ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ Vagrant.configure("2") do |config|
# Use a non-localhost DNS to avoid cluster DNS lookup loops
echo "nameserver 8.8.8.8" > /etc/resolv.conf
GO_VERSION=1.20
curl -sSfL -o- https://dl.google.com/go/go"$GO_VERSION".linux-amd64.tar.gz |
GO_VERSION=1.21
curl -sSfL -o- https://go.dev/dl/go$GO_VERSION.0.linux-amd64.tar.gz |
tar xfz - -C /usr/local
# Kubernetes
Expand Down
2 changes: 1 addition & 1 deletion nix/derivation-bpf.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ pkgs, buildGoModule, arch ? "x86" }:
with pkgs; buildGo120Module rec {
with pkgs; buildGo121Module rec {
name = "security-profiles-operator";
src = ./..;
vendorSha256 = null;
Expand Down
2 changes: 1 addition & 1 deletion nix/derivation.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ pkgs, buildGoModule }:
with pkgs; buildGo120Module rec {
with pkgs; buildGo121Module rec {
name = "security-profiles-operator";
src = ./..;
vendorSha256 = null;
Expand Down
9 changes: 5 additions & 4 deletions nix/nixpkgs.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"url": "https://github.com/nixos/nixpkgs",
"rev": "7b5ce85d8fc3c3bfe0b5c472be23b742cb1ad2aa",
"date": "2023-05-26T00:51:46-06:00",
"path": "/nix/store/xvnw4nzq5r4qghfjwnqj7nvv81pd9qfm-nixpkgs",
"sha256": "1ssvnf0573jpvji1ihrnv2hdl4qsdbm3hx699izrsvi0sb6m2dsk",
"rev": "2530efc97512901a6aae5ddee21e05cc70589dc6",
"date": "2023-08-30T12:18:30+02:00",
"path": "/nix/store/ghv18qwvks55645q8nvwlz0cjygg3aa8-nixpkgs",
"sha256": "1dzysf94dyjmz446dxy68qn84qzl6dddf78gazglhdqxny2zgj0n",
"hash": "sha256-Fsj3hbcdN0jfVw8d11oz9GOCLEbG92YI+VX6RpLT/rc=",
"fetchLFS": false,
"fetchSubmodules": false,
"deepClone": false,
Expand Down

0 comments on commit 6a22787

Please sign in to comment.