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

internal/pkg/scaffold: fix versions for go mod proxy #1632

Closed

Conversation

joelanford
Copy link
Member

Description of the change:
As a follow on to #1612, this PR changes the timestamps in the go mod scaffolds for k8s.io/api and k8s.io/apimachinery so that GOPROXY can be used when building scaffolded projects.

Motivation for the change:
Oddly, when GOPROXY=https://proxy.golang.org the e2e tests on master fail with an error about an invalid module version:

build github.com/example-inc/nginx-operator/cmd/manager: cannot load k8s.io/api/admission/v1beta1: unexpected status (https://proxy.golang.org/k8s.io/api/@v/v0.0.0-20190222131558-5cb15d344471.zip): 400 Bad Request

For some reason, without GOPROXY set, go build accepts both old and new version strings.

@openshift-ci-robot openshift-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jul 2, 2019
@joelanford
Copy link
Member Author

/test marker

@joelanford
Copy link
Member Author

/test e2e-aws-ansible

1 similar comment
@joelanford
Copy link
Member Author

/test e2e-aws-ansible

Copy link
Member

@lilic lilic left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 2, 2019
Copy link
Member

@estroz estroz left a comment

Choose a reason for hiding this comment

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

/lgtm

@joelanford
Copy link
Member Author

/test e2e-aws-ansible

1 similar comment
@joelanford
Copy link
Member Author

/test e2e-aws-ansible

Copy link
Member

@jmrodri jmrodri left a comment

Choose a reason for hiding this comment

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

lgtm

@joelanford
Copy link
Member Author

/test e2e-aws-ansible

1 similar comment
@lilic
Copy link
Member

lilic commented Jul 17, 2019

/test e2e-aws-ansible

@lilic
Copy link
Member

lilic commented Jul 17, 2019

/test e2e-aws-helm

@openshift-ci-robot
Copy link

@joelanford: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/prow/e2e-aws-helm db7358c link /test e2e-aws-helm
ci/prow/e2e-aws-ansible db7358c link /test e2e-aws-ansible
ci/prow/e2e-aws-go db7358c link /test e2e-aws-go

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

@joelanford
Copy link
Member Author

This is obsolete now that #1566 has been merged.

@joelanford joelanford closed this Jul 30, 2019
@joelanford joelanford deleted the go-mod-proxy-fix branch August 8, 2019 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants