Skip to content

Conversation

@thaJeztah
Copy link
Member

This allows overriding the version of Go without making modifications in the
source code, which can be useful to test against multiple versions.

For example:

make GO_VERSION=1.13beta1 -f docker.Makefile binary

This allows overriding the version of Go without making modifications in the
source code, which can be useful to test against multiple versions.

For example:

    make GO_VERSION=1.13beta1 -f docker.Makefile binary

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
Copy link
Member Author

ping @silvin-lubecki @vdemeester ptal

/cc @seemethere

@codecov-io
Copy link

Codecov Report

Merging #2008 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #2008   +/-   ##
=======================================
  Coverage   56.79%   56.79%           
=======================================
  Files         311      311           
  Lines       21836    21836           
=======================================
  Hits        12402    12402           
  Misses       8519     8519           
  Partials      915      915

Copy link
Collaborator

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

LGTM 🐯

Copy link
Contributor

@silvin-lubecki silvin-lubecki left a comment

Choose a reason for hiding this comment

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

What about removing the default args and force to set it, and define it only one time in the Makefile? You would then have only one place to update the go version?

@thaJeztah
Copy link
Member Author

@silvin-lubecki it's good to have a default in the Dockerfile; Dockerfiles should be "buildable" without having to pass specific build-args

@thaJeztah
Copy link
Member Author

That default could be :latest of course, but that would make them quite unpredictable

Copy link
Contributor

@kolyshkin kolyshkin left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants