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

Add GOWORK variable to the CI scripts #56

Merged
merged 1 commit into from
Nov 30, 2022

Conversation

fmount
Copy link
Contributor

@fmount fmount commented Nov 29, 2022

The cinder-operator patch [1] introduces the go.work file within the repository with the goal of automating the way we deal with multi module dependencies.
However, the side effect of having a versioned go.work in the repo is the failure of the govet CI script because GOWORK is automatically set to on. This patch fixes the CI run on the cinder-operator PR [1], introducing a GOWORK variable (which is set to off by default) to make sure we can successfully run this check regardless of the approach.
The GOWORK variable value is also inherited from the Makefile of the project.

[1] openstack-k8s-operators/cinder-operator#79

Signed-off-by: Francesco Pantano [email protected]

@gibizer
Copy link
Contributor

gibizer commented Nov 29, 2022

repos having go.work file checked in already adding GOWORK=off to the CI make target to fix this. After this land such repos can remove the GOWORK=off from their Makefile.

@fmount fmount requested a review from gibizer November 29, 2022 12:16
The cinder-operator patch [1] introduces the 'go.work' file within the
repository with the goal of automating the way we deal with multi module
dependencies.
However, the side effect of having a versioned 'go.work' in the repo is
the failure of this script because GOWORK is automatically set to "on".
This patch fixes the CI run on the cinder-operator PR [1], introducing
a GOWORK variable (which is set to off by default) to make sure we can
successfully run this check regardless of the Makefile approach.

[1] openstack-k8s-operators/cinder-operator#79

Signed-off-by: Francesco Pantano <[email protected]>
@fmount fmount changed the title Add GOWORK env variable when go vet is run Add GOWORK env variable when CI is run Nov 29, 2022
@fmount fmount changed the title Add GOWORK env variable when CI is run Add GOWORK variable to the CI scripts Nov 29, 2022
Copy link
Contributor

@stuggi stuggi 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

@Akrog Akrog left a comment

Choose a reason for hiding this comment

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

Sorry, commented on the wrong repo.

@fmount fmount requested review from dprince and Akrog and removed request for dprince November 30, 2022 09:44
@stuggi stuggi merged commit 724a6da into openstack-k8s-operators:master Nov 30, 2022
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