Skip to content

Commit

Permalink
NETOBSERV-1707: move to go 1.22 (#349)
Browse files Browse the repository at this point in the history
* NETOBSERV-1707: move to go 1.22

* update protobfu
  • Loading branch information
jotak authored Jun 17, 2024
1 parent 5720f47 commit 88136bd
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: check clean vendors
run: go mod vendor
- name: Report coverage
if: ${{ matrix.go == '1.21' }}
if: ${{ matrix.go == '1.22' }}
uses: codecov/codecov-action@v4
with:
files: ./cover.out
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull_request_e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: set up go 1.x
uses: actions/setup-go@v3
with:
go-version: '1.21'
go-version: '1.22'
- name: checkout
uses: actions/checkout@v3
- name: run end-to-end tests
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/push_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.21']
go: ['1.22']
steps:
- name: install make
run: sudo apt-get install make
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.21']
go: ['1.22']
steps:
- name: install make
run: sudo apt-get install make
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push_image_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.21']
go: ['1.22']
steps:
- name: install make
run: sudo apt-get install make
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.21']
go: ['1.22']
steps:
- name: checkout
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ linters:
- unused
linters-settings:
stylecheck:
go: "1.21"
go: "1.22"
gocritic:
enabled-checks:
- hugeParam
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ARG BUILDPLATFORM=linux/amd64
ARG TARGETARCH=amd64

# Build the manager binary
FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.21 as builder
FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.22 as builder


ARG TARGETARCH
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ OCI_BIN ?= $(shell basename ${OCI_BIN_PATH})
LOCAL_GENERATOR_IMAGE ?= ebpf-generator:latest
CILIUM_EBPF_VERSION := v0.15.0
GOLANGCI_LINT_VERSION = v1.54.2
GO_VERSION = "1.21.7"
GO_VERSION = "1.22.4"
PROTOC_VERSION = "3.19.4"
CLANG ?= clang
CFLAGS := -O2 -g -Wall -Werror $(CFLAGS)
Expand Down
2 changes: 1 addition & 1 deletion examples/performance/Dockerfile_packet_counter
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# this file has to be built from the project root directory

FROM golang:1.21 as builder
FROM golang:1.22 as builder

WORKDIR /app

Expand Down
22 changes: 11 additions & 11 deletions pkg/pbflow/flow.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions pkg/pbpacket/packet.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/generators.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM fedora:40

ARG GOVERSION="1.21.7"
ARG GOVERSION="1.22.4"
ARG PROTOCVERSION
ARG TARGETARCH
ARG EXTENSION
Expand Down

0 comments on commit 88136bd

Please sign in to comment.