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

Use dep for dependencies #25

Merged
merged 1 commit into from Feb 5, 2018
Merged

Use dep for dependencies #25

merged 1 commit into from Feb 5, 2018

Conversation

jpignata
Copy link
Contributor

@jpignata jpignata commented Feb 5, 2018

Make setup and predictable builds easier for contributors by locking to
a set of dependencies. Some of the dependencies have been locked to
specific commits on master in order to accomodate projects that do not
ship releases often such as cobra and gomock (see
spf13/cobra#259 for details).

  • Change mockgen commands to use a -source flag to explicitly point to
    the files in vendor for generating mocks. This, for some reason, fixes
    a bug in gomock whereby it uses the vendor path as the import path
    which breaks some dependencies.

    See support mocking vendored dependencies golang/mock#28 for more details.

Make setup and predictable builds easier for contributors by locking to
a set of dependencies. Some of the dependencies have been locked to
specific commits on master in order to accomodate projects that do not
ship releases often such as cobra and gomock (see
spf13/cobra#259 for details).

- Change mockgen commands to use a -source flag to explicitly point to
  the files in vendor for generating mocks. This, for some reason, fixes
  a bug in gomock whereby it uses the vendor path as the import path
  which breaks some dependencies.

  See golang/mock#28 for more details.
@jpignata
Copy link
Contributor Author

jpignata commented Feb 5, 2018

Addresses #21.

@jpignata jpignata merged commit 258ed7a into master Feb 5, 2018
@jpignata jpignata deleted the jp/dep branch February 5, 2018 01:12
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.

None yet

1 participant