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 dependency version management using dep #30

Merged
merged 2 commits into from
Jul 30, 2018

Conversation

VoyTechnology
Copy link
Member

The change would allow to have better control over the dependencies and
their changing versions.

The change would allow to have better control over the dependencies and
their changing versions.

The change includes:
- Addition of Gopkg.lock and Gopkg.toml
- Ignoring vendor/ directory
- README changes to reflect the change
- CI build scripts updates.
@VoyTechnology
Copy link
Member Author

I am aware the CI has failed and I'm looking into it.


[[constraint]]
branch = "master"
name = "github.com/pyToshka/go-virtualbox"
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you update this dependency to the root repo? The pyToshka version is a fork. I have pulled in all the changes from this fork in the root repo:

root repo = github.com/terra-farm/go-virtualbox

Copy link
Member Author

Choose a reason for hiding this comment

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

It was generated by dep init based on the code in the repo at the time, specifically:

https://github.com/terra-farm/terraform-provider-virtualbox/blob/master/provider/resource_vm.go#L17

If someone wants to file a PR to change the package (or I can do it), I will update the PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

I will leave it for now. Let's get the build working so that this can be merged.

Gopkg.lock Outdated
"lex/httplex",
"trace"
]
revision = "f2499483f923065a842d38eb4c7f1927e6fc6e6d"
Copy link
Contributor

Choose a reason for hiding this comment

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

@VoyTechnology this revision of net/http2 does not contain the function SetReuseFrames. Can you update this revision manually to ffcf1bedda3b04ebb15a168a59800a73d6dc0f4d and try again?

I got this revision from another project on Github using net/http2 with the function SetReuseFrames
https://github.com/SolarisYan/grpc-hello-with-gateway/blob/master/vendor/manifest

This ensures the package is built with latest version of the code for
all the dependencies.
@VoyTechnology
Copy link
Member Author

My last commit fixed the issue. However dep ensure took 281.90s, which is less than ideal. Should I add caching in this PR? dep ensure will make sure the dependencies are of correct version, so there is no need to worry about old packages being used.

@ringods ringods merged commit c7a4d94 into terra-farm:master Jul 30, 2018
@ringods
Copy link
Contributor

ringods commented Jul 30, 2018

@VoyTechnology I merged this PR for now. If you still want to add caching, feel free to create a new PR. Thanks already for providing the dep support.

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.

2 participants