Skip to content

Commit

Permalink
Merge pull request #5715 from Luap99/go-1.22
Browse files Browse the repository at this point in the history
Update to go 1.22
  • Loading branch information
openshift-merge-bot[bot] authored Sep 4, 2024
2 parents f56150a + a353800 commit 101d5ea
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 40 deletions.
33 changes: 18 additions & 15 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ env:
####
# GCE project where images live
IMAGE_PROJECT: "libpod-218412"
FEDORA_NAME: "fedora-39"
PRIOR_FEDORA_NAME: "fedora-38"
FEDORA_NAME: "fedora-40"
PRIOR_FEDORA_NAME: "fedora-39"
DEBIAN_NAME: "debian-13"

# Image identifiers
Expand Down Expand Up @@ -208,10 +208,11 @@ integration_task:
DISTRO_NV: "${FEDORA_NAME}"
IMAGE_NAME: "${FEDORA_CACHE_IMAGE_NAME}"
STORAGE_DRIVER: 'vfs'
- env:
DISTRO_NV: "${PRIOR_FEDORA_NAME}"
IMAGE_NAME: "${PRIOR_FEDORA_CACHE_IMAGE_NAME}"
STORAGE_DRIVER: 'vfs'
# Disabled until we update to f40/41 as f39 does not have go 1.22
# - env:
# DISTRO_NV: "${PRIOR_FEDORA_NAME}"
# IMAGE_NAME: "${PRIOR_FEDORA_CACHE_IMAGE_NAME}"
# STORAGE_DRIVER: 'vfs'
- env:
DISTRO_NV: "${DEBIAN_NAME}"
IMAGE_NAME: "${DEBIAN_CACHE_IMAGE_NAME}"
Expand All @@ -221,10 +222,11 @@ integration_task:
DISTRO_NV: "${FEDORA_NAME}"
IMAGE_NAME: "${FEDORA_CACHE_IMAGE_NAME}"
STORAGE_DRIVER: 'overlay'
- env:
DISTRO_NV: "${PRIOR_FEDORA_NAME}"
IMAGE_NAME: "${PRIOR_FEDORA_CACHE_IMAGE_NAME}"
STORAGE_DRIVER: 'overlay'
# Disabled until we update to f40/41 as f39 does not have go 1.22
# - env:
# DISTRO_NV: "${PRIOR_FEDORA_NAME}"
# IMAGE_NAME: "${PRIOR_FEDORA_CACHE_IMAGE_NAME}"
# STORAGE_DRIVER: 'overlay'
- env:
DISTRO_NV: "${DEBIAN_NAME}"
IMAGE_NAME: "${DEBIAN_CACHE_IMAGE_NAME}"
Expand Down Expand Up @@ -265,11 +267,12 @@ integration_rootless_task:
IMAGE_NAME: "${FEDORA_CACHE_IMAGE_NAME}"
STORAGE_DRIVER: 'overlay'
PRIV_NAME: rootless
- env:
DISTRO_NV: "${PRIOR_FEDORA_NAME}"
IMAGE_NAME: "${PRIOR_FEDORA_CACHE_IMAGE_NAME}"
STORAGE_DRIVER: 'overlay'
PRIV_NAME: rootless
# Disabled until we update to f40/41 as f39 does not have go 1.22
# - env:
# DISTRO_NV: "${PRIOR_FEDORA_NAME}"
# IMAGE_NAME: "${PRIOR_FEDORA_CACHE_IMAGE_NAME}"
# STORAGE_DRIVER: 'overlay'
# PRIV_NAME: rootless
- env:
DISTRO_NV: "${DEBIAN_NAME}"
IMAGE_NAME: "${DEBIAN_CACHE_IMAGE_NAME}"
Expand Down
25 changes: 15 additions & 10 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ jobs:
failure_comment:
message: "Ephemeral COPR build failed. @containers/packit-build please check."
targets:
fedora-all-x86_64: {}
fedora-all-aarch64: {}
fedora-development-x86_64: {}
fedora-development-aarch64: {}
fedora-latest-x86_64: {}
fedora-latest-aarch64: {}
fedora-latest-stable-x86_64: {}
fedora-latest-stable-aarch64: {}
fedora-eln-x86_64:
additional_repos:
- "https://kojipkgs.fedoraproject.org/repos/eln-build/latest/x86_64/"
Expand All @@ -47,14 +51,15 @@ jobs:
- centos-stream-10-aarch64
enable_net: true

- job: copr_build
trigger: pull_request
packages: [buildah-rhel]
notifications: *copr_build_failure_notification
targets:
- epel-9-x86_64
- epel-9-aarch64
enable_net: true
# Disabled until there is go 1.22 in epel-9
# - job: copr_build
# trigger: pull_request
# packages: [buildah-rhel]
# notifications: *copr_build_failure_notification
# targets:
# - epel-9-x86_64
# - epel-9-aarch64
# enable_net: true

# Run on commit to main branch
- job: copr_build
Expand Down
17 changes: 2 additions & 15 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,21 +1,8 @@
module github.com/containers/buildah

// Minimum required golang version
go 1.21.0 // ***** ATTENTION WARNING CAUTION DANGER ******
// Warning: Ensure the "go" and "toolchain" versions match exactly to prevent unwanted auto-updates

// Go versions 1.21 and later will AUTO-UPDATE based
// on currently running tools and the (new) `toolchain`
// value (when also increasing the `go` value above).
// ref: https://go.dev/doc/toolchain Because several
// different distros and distro-versions build from
// this code, golang version consistency is
// desireable. After manually updating to 1.21, a
// `toolchain` specification should be added to pin
// the version and block auto-updates. This does not
// block any future changes to the `go` value.
// Ref: Upstream discussion:
// https://github.com/golang/go/issues/65847
// ***** ATTENTION WARNING CAUTION DANGER ******
go 1.22.0

require (
github.com/containerd/platforms v0.2.1
Expand Down

1 comment on commit 101d5ea

@packit-as-a-service
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

podman-next COPR build failed. @containers/packit-build please check.

Please sign in to comment.