-
Notifications
You must be signed in to change notification settings - Fork 72
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
update Go version, alpine, golangci and gotestsum #206
Open
converge
wants to merge
4
commits into
docker:main
Choose a base branch
from
converge:dependencies_update_
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+11
−10
Open
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,10 +16,10 @@ | |
# limitations under the License. | ||
|
||
|
||
ARG GO_VERSION=1.16.3-alpine | ||
ARG CLI_VERSION=20.10.2 | ||
ARG ALPINE_VERSION=3.12.2 | ||
ARG GOLANGCI_LINT_VERSION=v1.33.0-alpine | ||
ARG GO_VERSION=1.18-alpine | ||
ARG CLI_VERSION=20.10.12 | ||
ARG ALPINE_VERSION=3.15.4 | ||
ARG GOLANGCI_LINT_VERSION=v1.45.2-alpine | ||
|
||
#### | ||
# BUILDER | ||
|
@@ -58,7 +58,8 @@ RUN --mount=type=cache,target=/root/.cache/go-build \ | |
FROM builder AS validate-headers | ||
RUN --mount=type=cache,target=/root/.cache/go-build \ | ||
--mount=type=cache,target=/go/pkg \ | ||
go get -u github.com/kunalkushwaha/ltag && ./scripts/validate/fileheader | ||
go install github.com/kunalkushwaha/[email protected] && ./scripts/validate/fileheader | ||
|
||
|
||
#### | ||
# CHECK GO MOD | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,11 +13,11 @@ | |
# limitations under the License. | ||
|
||
# Pinned Versions | ||
GO_VERSION=1.16.3-alpine | ||
CLI_VERSION=20.10.2 | ||
ALPINE_VERSION=3.12.2 | ||
GOLANGCI_LINT_VERSION=v1.33.0-alpine | ||
GOTESTSUM_VERSION=0.6.0 | ||
GO_VERSION=1.18-alpine | ||
CLI_VERSION=20.10.12 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While we're updating; could you make this 20.10.14 (which is latest)? (same for the Dockerfile) |
||
ALPINE_VERSION=3.15.4 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's go to 3.17 now |
||
GOLANGCI_LINT_VERSION=v1.45.2-alpine | ||
GOTESTSUM_VERSION=1.8.0 | ||
|
||
GOOS?=$(shell go env GOOS) | ||
GOARCH?=$(shell go env GOARCH) | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@silvin-lubecki do you prefer to keep the go version pinned to minor releases? (
1.18.1
currently)? (same for the Dockerfile probably).Slightly confused why we define defaults for them both as a make var and as a default var in the Dockerfile though; I think if we'd change the Makefile to remove the
=$(VARIABLE)
, the build-args should take the value from the environment (if set), and otherwise take the default from the Dockerfile, i.e., something like:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if I can jump in.. keep up with 1.18 (1.18.x) would be nice, since it uses the most recent version, and the minor changes from Go are usually security updates.
Regarding point 2, you're right, we were setting the dependencies at the Makefile and var.mk file. I updated the Dockerfile to only read the ARG values from the Makefile (that sets the ARG values). WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather keep the defaults in the Dockerfile if that works, that way the Dockerfile itself has usable defaults, which allows it to be built without having to pass specific build args.
Not near my computer to try if that works though☺️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch @thaJeztah 👍