Skip to content
This repository has been archived by the owner on Oct 17, 2018. It is now read-only.

Commit

Permalink
update install-mockgen command
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Skelcy committed Apr 12, 2018
1 parent 698104c commit 13507b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,9 @@ test-ci-integration:
$(test_ci_integration)

.PHONY: install-mockgen
install-mockgen:
install-mockgen: install-vendor
@echo Installing mockgen
@which mockgen >/dev/null || (make install-vendor && \
rm -rf $(gopath_prefix)/$(mockgen_package) && \
cp -r $(vendor_prefix)/$(mockgen_package) $(gopath_prefix)/$(mockgen_package) && \
go install $(mockgen_package) \
)
glide install

.PHONY: mock-gen
mock-gen: install-mockgen install-license-bin install-util-mockclean
Expand Down
2 changes: 1 addition & 1 deletion generated/mocks/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

// mockgen rules for generating mocks for exported interfaces (reflection mode)
// mockgen rules for generating mocks for exported interfaces (reflection mode).
//go:generate sh -c "mockgen -package=rules $PACKAGE/rules Store| mockclean -pkg $PACKAGE/rules -out $GOPATH/src/$PACKAGE/rules/store_mock.go"

package mocks

0 comments on commit 13507b4

Please sign in to comment.