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

fix make csi-sp test #120

Merged
merged 1 commit into from
Jun 5, 2019
Merged

fix make csi-sp test #120

merged 1 commit into from
Jun 5, 2019

Conversation

codenrhoden
Copy link
Member

@codenrhoden codenrhoden commented Jun 5, 2019

fixes #119

This is a touch hacky, but I'm changing it as part of a subsequent PR to move to Go modules anyways. The make csi-sp test was failing because it was pulling in the latest CSI spec, rather than the one we had specified in the Gopkg.toml file. This wasn't an issue until code went in for CSI v1.1.0 that added new methods to the CSI controller interface. I think it is completely fair that for CI, makefile originated runs of csi-sp test, that we always use the Gopkg.toml file from the checked out version of the code. So I took advantage of a switch within gocsi.sh that doesn't write a new Gopkg.toml file if it already exists -- I had the Makefile just copy it directly.

When doing make csi-sp, we should always use the Gopkg.toml file from
the checked out source. The current test was failing because once CSI
v1.1.0 was released, the Gopkg.toml file that was created by gocsi.sh
wasn't identical to the one in the repo. Furthermore, we also needed
change the version spec to use "=" to lock it down. Without the "=", the
syntax actually defaults to "^", which if using "v1.0.0" means using
anything from 1.0.0 to <2.0.0. So we were pulling in the latest spec
when we really wanted to be on 1.0.0 exactly.

Travis-CI Go version is bumped to solve a DisallowUnknownFields support
issue for YAML.

When doing `make csi-sp`, we should always use the Gopkg.toml file from
the checked out source. The current test was failing because once CSI
v1.1.0 was released, the Gopkg.toml file that was created by gocsi.sh
wasn't identical to the one in the repo. Furthermore, we also needed
change the version spec to use "=" to lock it down. Without the "=", the
syntax actually defaults to "^", which if using "v1.0.0" means using
anything from 1.0.0 to <2.0.0. So we were pulling in the latest spec
when we really wanted to be on 1.0.0 exactly.

Travis-CI Go version is bumpted to solve a DisallowUnknownFields support
issue for YAML.
@akutz akutz merged commit d02a4a3 into rexray:master Jun 5, 2019
@codenrhoden codenrhoden deleted the make-sp branch June 6, 2019 15:22
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.

Unable to compile gocsi
2 participants