Skip to content

Commit

Permalink
golang update to v1.22.6
Browse files Browse the repository at this point in the history
Signed-off-by: Navid Yaghoobi <[email protected]>
  • Loading branch information
navidys committed Sep 27, 2024
1 parent e083763 commit ca69dc4
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 56 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: actions/setup-go@v3

with:
go-version: '>=1.21'
go-version: '>=1.22'

- name: Build binary
run: |
Expand Down
28 changes: 4 additions & 24 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: '>=1.21'
go-version: '>=1.22'
- uses: actions/checkout@v3
- run: |
go mod tidy
Expand All @@ -24,34 +24,14 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
# cannot use 1.21.X latest version since golangci-lint has an issue.
go-version: '1.21.4'
go-version: '>=1.22'
- uses: actions/checkout@v3
- run: |
bash hack/install_dep.sh
make .install.golangci-lint
make lint
make gofmt
# tests_podmanv4:
# runs-on: ubuntu-latest
# container:
# image: quay.io/containers/podman:v4
# volumes:
# - container_volume:/var/lib/containers
# options: "--device /dev/fuse:rw --security-opt label=disable --security-opt seccomp=unconfined --privileged"
# steps:
# - uses: actions/setup-go@v3
# with:
# go-version: '1.21.4'
# - uses: actions/checkout@v3
# - run: |
# yum -y install make gcc glib2-devel glibc-devel glibc-static device-mapper-devel
# export GOBIN=$(pwd)/bin/
# export CGO_ENABLED=1
# make .install.ginkgo
# make test

tests_podmanv5:
runs-on: ubuntu-latest
container:
Expand All @@ -62,7 +42,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: '1.21.4'
go-version: '>=1.22'
- uses: actions/checkout@v3
- run: |
yum -y install make gcc glib2-devel glibc-devel glibc-static device-mapper-devel
Expand All @@ -78,7 +58,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: '>=1.21'
go-version: '>=1.22'
- uses: actions/checkout@v3
- run: |
bash hack/install_dep.sh
Expand Down
28 changes: 4 additions & 24 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: '>=1.21'
go-version: '>=1.22'
- uses: actions/checkout@v3
- run: |
go mod tidy
Expand All @@ -60,34 +60,14 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
# cannot use 1.21.X latest version since golangci-lint has an issue.
go-version: '1.21.4'
go-version: '>=1.22'
- uses: actions/checkout@v3
- run: |
bash hack/install_dep.sh
make .install.golangci-lint
make lint
make gofmt
# tests_podmanv4:
# runs-on: ubuntu-latest
# container:
# image: quay.io/containers/podman:v4
# volumes:
# - container_volume:/var/lib/containers
# options: "--device /dev/fuse:rw --security-opt label=disable --security-opt seccomp=unconfined --privileged"
# steps:
# - uses: actions/setup-go@v3
# with:
# go-version: '1.21.4'
# - uses: actions/checkout@v3
# - run: |
# yum -y install make gcc glib2-devel glibc-devel glibc-static device-mapper-devel
# export GOBIN=$(pwd)/bin/
# export CGO_ENABLED=1
# make .install.ginkgo
# make test

tests_podmanv5:
runs-on: ubuntu-latest
container:
Expand All @@ -98,7 +78,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: '1.21.4'
go-version: '>=1.22'
- uses: actions/checkout@v3
- run: |
yum -y install make gcc glib2-devel glibc-devel glibc-static device-mapper-devel
Expand All @@ -114,7 +94,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: '>=1.21'
go-version: '>=1.22'
- uses: actions/checkout@v3
- run: |
bash hack/install_dep.sh
Expand Down
13 changes: 7 additions & 6 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ jobs:
targets:
- fedora-latest-stable
- fedora-development
- epel-9-x86_64
- epel-9-aarch64
- centos-stream-9-x86_64
- centos-stream-9-aarch64
- centos-stream-10-x86_64
- centos-stream-10-aarch64
# Disabled until there is go 1.22.6 in centos stream and epel
#- epel-9-x86_64
#- epel-9-aarch64
#- centos-stream-9-x86_64
#- centos-stream-9-aarch64
#- centos-stream-10-x86_64
#- centos-stream-10-aarch64
actions:
post-upstream-clone:
- "rpkg spec --outdir ./"
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 github.com/containers/prometheus-podman-exporter

go 1.21.0
go 1.22.6

require (
github.com/containers/common v0.60.3
Expand Down

0 comments on commit ca69dc4

Please sign in to comment.