Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant