Skip to content

Conversation

@cpu
Copy link
Member

@cpu cpu commented Mar 29, 2025

The 2.42 release stream of nfpm requires Go 1.23+ and the base images we're using are shipping Go 1.22. Rather than pin the go install to an older version, let's switch to using the binary releases from upstream. This is faster, and removes the need to care about Go version on the builder images.

Fixes packaging task build failures observed on main.

This removes the need to care about the installed Go version. Presently
trying to build `nfpm@latest` from source fails because 2.42+ requires
Go 1.23+ and we have Go 1.22 in the packager images. Rather than pin to
2.41 let's install the upstream rpm/deb since it's faster.
@cpu cpu self-assigned this Mar 29, 2025
Comment on lines -212 to -214
# nb. ubuntu:22.04 has a too-old golang to build nfpm
# we could install an upstream golang if we want to
# package there.
Copy link
Member Author

Choose a reason for hiding this comment

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

I removed this comment because it doesn't apply anymore now that we're installing nfpm from releases and not src.

I didn't add a 22.04 container because it felt like the value is pretty minimal. WDYT?

Copy link
Member

@djc djc left a comment

Choose a reason for hiding this comment

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

Looks okay to me (but this is definitely outside my comfort zone).

Copy link
Member

@ctz ctz left a comment

Choose a reason for hiding this comment

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

💯

@cpu cpu merged commit fd26257 into rustls:main Mar 30, 2025
26 of 32 checks passed
@cpu cpu deleted the cpu-fix-ci-packaging branch March 30, 2025 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants