Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Use golang:1.17 and build from reproducible source#1848

Merged
imjasonh merged 3 commits intoGoogleContainerTools:masterfrom
imjasonh:golang-1.17
Dec 21, 2021
Merged

Use golang:1.17 and build from reproducible source#1848
imjasonh merged 3 commits intoGoogleContainerTools:masterfrom
imjasonh:golang-1.17

Conversation

@imjasonh
Copy link
Copy Markdown
Contributor

Description

This builds on #1847 to use Go 1.17 and reproducible Go modules (incremental diff)

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes unit tests
  • Adds integration tests if needed.

See the contribution guide for more details.

Reviewer Notes

  • The code flow looks good.
  • Unit tests and or integration tests added.

Release Notes

Describe any changes here so maintainer can include it in the release notes, or delete this block.

Reproducibly build included credential helpers from pinned Go modules.

@imjasonh imjasonh requested a review from priyawadhwa December 20, 2021 21:12
This change updates the Go version used to build kaniko and credential
helpers to Go 1.17, which uses Go modules by default. This means that we
can build outside of $GOPATH, from source fetched from the Go module
proxy.

This change also simplfies our builds of credential helpers to simply
`go install` them at a pinned version, for reproducibility and
simplicity.

This also changes `make images` and `make push` to build and push the
slim executor image as well.
@imjasonh imjasonh merged commit f694212 into GoogleContainerTools:master Dec 21, 2021
gcalmettes pushed a commit to gcalmettes/kaniko that referenced this pull request Dec 24, 2021
…ols#1848)

* cleanup: Correctly use buildx TARGETARCH

* undo changes to Go version

* Use golang:1.17 and build from reproducible source

This change updates the Go version used to build kaniko and credential
helpers to Go 1.17, which uses Go modules by default. This means that we
can build outside of $GOPATH, from source fetched from the Go module
proxy.

This change also simplfies our builds of credential helpers to simply
`go install` them at a pinned version, for reproducibility and
simplicity.

This also changes `make images` and `make push` to build and push the
slim executor image as well.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants