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

Fix issues related to Go 1.18 #657

Merged
merged 8 commits into from
Mar 19, 2022
Merged

Fix issues related to Go 1.18 #657

merged 8 commits into from
Mar 19, 2022

Conversation

imjasonh
Copy link
Member

@imjasonh imjasonh commented Mar 19, 2022

Update our internal fork for 1.18's ParseBuildInfo for use by pre-1.18 build versions to exactly the code used in the Go 1.18 release branch.

This affects users who go install ko running Go <1.18, since that code was old and incompatible with 1.18-produced output of go version -m. This also affects users running released binaries, since those were built with 1.17 in our release process.

Add a workflow to test all combinations of pre- and post-1.18 setups for both how ko was built, and what version of Go is installed by the user.

Update our release workflow to build using Go 1.18, so users who download built binaries don't depend on our forked code at all.

Ref #651
Fixes #650

@codecov-commenter
Copy link

codecov-commenter commented Mar 19, 2022

Codecov Report

Merging #657 (12b5342) into main (bdc2d9f) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #657   +/-   ##
=======================================
  Coverage   51.62%   51.62%           
=======================================
  Files          44       44           
  Lines        3268     3268           
=======================================
  Hits         1687     1687           
  Misses       1371     1371           
  Partials      210      210           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bdc2d9f...12b5342. Read the comment docs.

Update our internal fork for 1.18's ParseBuildInfo for use by pre-1.18
build versions to exactly the code used in the Go 1.18 release branch.
This affects users who `go install` ko running Go <1.18, since that code
was old and incompatible with 1.18-produced output of `go version -m`.

Add a workflow to test all combinations of pre- and post-1.18 setups for
both how ko was built, and what version of Go is installed by the user.

Update our release workflow to build using Go 1.18, so users who
download built binaries don't depend on our forked code at all.
@imjasonh imjasonh merged commit 420c353 into ko-build:main Mar 19, 2022
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.

ko install failed by Go 1.18
3 participants