Skip to content

Switch the dependency management tool "godep" -> "dep"#79

Merged
legal90 merged 6 commits intoParallels:masterfrom
legal90:migrate-to-dep
Dec 27, 2018
Merged

Switch the dependency management tool "godep" -> "dep"#79
legal90 merged 6 commits intoParallels:masterfrom
legal90:migrate-to-dep

Conversation

@legal90
Copy link
Copy Markdown
Collaborator

@legal90 legal90 commented Dec 26, 2018

tools/godep was deprecated in favor of golang/dep.
It removes a lot of hassle with managing dependencies for Go projects. So, I decided to switch to it in this project.

Now direct dependencies are declared in Gopkg.toml and locked in Gopkg.lock.
How to update the dependency version:

  • Bump it in Gopkg.toml
  • run dep ensure
  • Done! Don't forget to commit the updated Gopkg.toml, Gopkg.lock and vendor/*

We still have the content of vendor/ dir in the git index for easier start - dep tool is not required to build a project.
We can gitignore the vendor/ content in the future if we want.

In the scope of this PR I have also updated some dependencies:

  • github.com/docker/machine: 0.12.2 -> 0.16.0
  • github.com/hashicorp/go-version: 03c5bf6 -> 1.0.0
  • github.com/urfave/cli: 1.18.0 -> 1.20.0
    and their transitive dependencies

Acceptance test are passed.

Copy link
Copy Markdown
Collaborator

@romankulikov romankulikov left a comment

Choose a reason for hiding this comment

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

Frankly it's impossible to review such huge changes. So I approve it just because the change is sane and reasonable.

@legal90
Copy link
Copy Markdown
Collaborator Author

legal90 commented Dec 27, 2018

Frankly it's impossible to review such huge changes.

Yeah, I understand :( . The content of vendor/ could be suppressed.
Thanks anyway!

@legal90 legal90 merged commit 6b681ec into Parallels:master Dec 27, 2018
@legal90 legal90 deleted the migrate-to-dep branch December 27, 2018 08:53
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