Remove uneeded gomock tool and too agressive mock cleanup
This commit is contained in:
parent
a47c2ce7ee
commit
ee53eae364
5
Makefile
5
Makefile
@ -157,13 +157,11 @@ staticcheck: $(STATICCHECK)
|
||||
|
||||
qa: vet critic test
|
||||
|
||||
mocks: $(GOMOCK)
|
||||
mocks: $(MOCKGEN)
|
||||
# Cleanup all pre-generated
|
||||
find . -name '*_mock_test.go' -delete
|
||||
rm -rf system/repository/mocks && mkdir -p system/repository/mocks
|
||||
rm -rf compose/service/mocks && mkdir -p compose/service/mocks
|
||||
|
||||
|
||||
$(MOCKGEN) -package repository -source system/repository/user.go -destination system/repository/mocks/user.go
|
||||
$(MOCKGEN) -package repository -source system/repository/credentials.go -destination system/repository/mocks/credentials.go
|
||||
|
||||
@ -183,7 +181,6 @@ $(GOCRITIC):
|
||||
$(GOGET) github.com/go-critic/go-critic/...
|
||||
|
||||
$(MOCKGEN):
|
||||
$(GOGET) github.com/golang/mock/gomock
|
||||
$(GOGET) github.com/golang/mock/mockgen
|
||||
|
||||
$(STATICCHECK):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user