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
migrate to go 1.14 + modules #2214
migrate to go 1.14 + modules #2214
Conversation
3bffc5f
to
dd2dc0c
Compare
Hey @skriss I pulled this branch locally to run tests. Got some errors "not finding package" and am thinking there needs to be a go mod command run? I can google but if that's the case, should some documentation be added to the |
Hmm, not sure off the top of my head what issue you're running into -- can you provide some more detail (go version, is the code in |
Nvm, all I had to do was upgrade to 1.13. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me.
Also, ran the tests using this branch and it's all good.
moving out of draft but I still have some followups |
Putting this on hold so it can be moved to post-1.3. |
dd2dc0c
to
8e5d5a2
Compare
rebased, addressed feedback, and updated to go 1.14. let's see if it passes CI.. |
The CI is passing 🎉 |
I'll do a little bit of retesting on this just to ensure nothing broke with the latest changes, but I think it's good to go. We'll hold until just after we release 1.3. |
Signed-off-by: Steve Kriss <krisss@vmware.com>
Signed-off-by: Steve Kriss <krisss@vmware.com>
Signed-off-by: Steve Kriss <krisss@vmware.com>
Signed-off-by: Steve Kriss <krisss@vmware.com>
Signed-off-by: Steve Kriss <krisss@vmware.com>
Signed-off-by: Steve Kriss <krisss@vmware.com>
Signed-off-by: Steve Kriss <krisss@vmware.com>
Signed-off-by: Steve Kriss <krisss@vmware.com>
Signed-off-by: Steve Kriss <krisss@vmware.com>
Signed-off-by: Steve Kriss <krisss@vmware.com>
Signed-off-by: Steve Kriss <krisss@vmware.com>
Signed-off-by: Steve Kriss <krisss@vmware.com>
Signed-off-by: Steve Kriss <krisss@vmware.com>
8e5d5a2
to
514e24f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
During my manual testing of building and running through some sample backups/restores (not with restic), this appears to work as expected. I do have a question inline, though.
$@ | ||
|
||
go run ${GOPATH}/src/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go \ | ||
controller-gen \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
I retested the CI steps as well as the local dev stuff (go build/go test locally) inside and out of $GOPATH, and everything LGTM, so from my perspective this is ready to go. I will file a couple follow-up enhancement issues as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for shepherding this through @skriss and @ashish-amarnath! Hopefully all this work will make moving the plugins over much easier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚀
closes #1886
xref #2127
This PR migrates Velero from
dep
to go modules for dependency management, and upgrades the go version to1.131.14. Heavily inspired by @ashish-amarnath's work in #2127.Probably easiest to review commit-by-commit, as I broke it up into small steps.
I believe the only thing that's not using modules yet is the Kubernetes
code-generator
tool - it's still being cloned into a $GOPATH-based dir and being run from there due to some compatibility issues (I'll update with links to issues).I've tested all of the main workflows and things seemed to be working properly, but I would definitely appreciate some further testing before getting ready to merge this.