Skip to content

origin-release: add golang-1.14#8542

Closed
stevekuznetsov wants to merge 1 commit intoopenshift:masterfrom
stevekuznetsov:skuznets/publish-go-1.14
Closed

origin-release: add golang-1.14#8542
stevekuznetsov wants to merge 1 commit intoopenshift:masterfrom
stevekuznetsov:skuznets/publish-go-1.14

Conversation

@stevekuznetsov
Copy link
Copy Markdown
Contributor

Signed-off-by: Steve Kuznetsov skuznets@redhat.com

/assign @smarterclayton

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: stevekuznetsov

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 24, 2020
#
# The standard name for this image is openshift/origin-release
#
FROM centos:7
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe we can start using 8 for new stuff?

triggers:
- imageChange: {}
type: ImageChange
- apiVersion: v1
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Out of curiosity, what triggers this when a now golang patch version becomes available?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Humans

GOARM=5 \
GOPATH=/go \
GOROOT=/usr/local/go \
GOFLAGS='-mod=vendor' \
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

From the Go 1.14 Release Notes:

Go command

Vendoring

When the main module contains a top-level vendor directory and its go.mod file specifies go 1.14 or higher, the go command now defaults to -mod=vendor for operations that accept that flag. A new value for that flag, -mod=mod, causes the go command to instead load modules from the module cache (as when no vendor directory is present).

When -mod=vendor is set (explicitly or by default), the go command now verifies that the main module's vendor/modules.txt file is consistent with its go.mod file.

@stevekuznetsov given the above, I wonder if it would be a good idea to leave this flag out? Without it, Go should now "do the correct thing" depending on whether the project being built vendors dependencies or not.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@grdryn no it does not unless you bump the go.mod:

and its go.mod file specifies go 1.14 or higher

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@alvaroaleman yes, that's true; although I'd assume that projects would update the go.mod to specify that if they were going to use this image. I guess there's no guarantee of that though.

@markusthoemmes
Copy link
Copy Markdown
Contributor

Anything blocking a merge of this currently? Serverless/Knative stuff is currently broken due to not being able to build with go1.14 😢

@lilic
Copy link
Copy Markdown
Contributor

lilic commented May 15, 2020

@stevekuznetsov we are also blocked on one PR waiting for this change, just friendly bump :)

@markusthoemmes
Copy link
Copy Markdown
Contributor

@lilic We've unblocked this yesterday in #9096. The 1.14 image is at your disposal now :).

This should probably be closed as fixed.

/close

@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@markusthoemmes: Closed this PR.

Details

In response to this:

@lilic We've unblocked this yesterday in #9096. The 1.14 image is at your disposal now :).

This should probably be closed as fixed.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants