Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade go to v1.22 #347

Merged
merged 1 commit into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: ^1.21
go-version: ^1.22

- name: Download libbpf.tar.gz
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -190,7 +190,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: ^1.21
go-version: ^1.22

- name: Install libelf-dev
run: sudo apt-get install -y libelf-dev
Expand All @@ -213,7 +213,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: ^1.21
go-version: ^1.22

- name: Download libbpf.tar.gz
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -243,7 +243,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: ^1.21
go-version: ^1.22

- name: Install libelf-dev
run: sudo apt-get install -y libelf-dev
Expand All @@ -266,7 +266,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: ^1.21
go-version: ^1.22

- name: Download libbpf.tar.gz
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -298,7 +298,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: ^1.21
go-version: ^1.22

- name: Install libelf-dev
run: sudo apt-get install -y libelf-dev
Expand All @@ -322,7 +322,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: ^1.21
go-version: ^1.22
cache: false # https://github.com/golangci/golangci-lint-action/issues/807

- name: Install libelf-dev
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN make -j $(nproc) -C /build/ebpf_exporter libbpf.a && \
tar -C /build/ebpf_exporter/libbpf/dest -czf /build/libbpf.tar.gz .

# ebpf_exporter binary
FROM golang:1.21-bookworm as ebpf_exporter_builder
FROM golang:1.22-bookworm as ebpf_exporter_builder

RUN apt-get update && \
apt-get install -y libelf-dev pci.ids
Expand Down