Skip to content

update to go 1.18 (continue testing against 1.17)#3643

Merged
milosgajdos merged 2 commits intodistribution:mainfrom
thaJeztah:update_go_1.18
May 5, 2022
Merged

update to go 1.18 (continue testing against 1.17)#3643
milosgajdos merged 2 commits intodistribution:mainfrom
thaJeztah:update_go_1.18

Conversation

@thaJeztah
Copy link
Member

Go 1.16 reached end of life, so update to the current version of Go, but also
run CI on the previous version (which is still supported).

We should probably also decide wether or not we want the Dockerfiles to pin to
a specific minor version; this makes the releases more deterministic.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented May 5, 2022

Codecov Report

Merging #3643 (6e8dd26) into main (7a6b9e3) will decrease coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #3643      +/-   ##
==========================================
- Coverage   56.62%   56.58%   -0.04%     
==========================================
  Files         103      103              
  Lines        7520     7520              
==========================================
- Hits         4258     4255       -3     
- Misses       2593     2596       +3     
  Partials      669      669              
Impacted Files Coverage Δ
...distribution/distribution/registry/handlers/app.go 45.91% <0.00%> (-0.56%) ⬇️

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 7a6b9e3...6e8dd26. Read the comment docs.

@thaJeztah
Copy link
Member Author

We'll need to update the list of "required" checks again after this (as their name is based on the go version)

@thaJeztah
Copy link
Member Author

Argh... this one ..... (no, it's not a breaking change 😂)

#17 26.98 cmd/digest/main.go:1: : error obtaining VCS status: exec: "git": executable file not found in $PATH
#17 26.98 	Use -buildvcs=false to disable VCS stamping. (typecheck)

@milosgajdos
Copy link
Member

we seem to be missing git in the lint.Dockerfile

Go 1.16 reached end of life, so update to the current version of Go, but also
run CI on the previous version (which is still supported).

We should probably also decide wether or not we want the Dockerfiles to pin to
a specific minor version; this makes the releases more deterministic.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
WORKDIR /src

FROM base
ENV GOFLAGS="-buildvcs=false"
Copy link
Member Author

Choose a reason for hiding this comment

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

That should probably do the trick as well; didn't want to add git as a dependency for linting if it's not needed.

@thaJeztah
Copy link
Member Author

Whoop! All green now!

@milosgajdos milosgajdos requested review from joaodrp and wy65701436 May 5, 2022 09:44
Copy link
Collaborator

@wy65701436 wy65701436 left a comment

Choose a reason for hiding this comment

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

lgtm

@milosgajdos milosgajdos merged commit 985711c into distribution:main May 5, 2022
@thaJeztah thaJeztah deleted the update_go_1.18 branch May 5, 2022 16:42
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.

4 participants