Skip to content

Commit

Permalink
Merge pull request #1794 from saschagrunert/update-mocks
Browse files Browse the repository at this point in the history
Add update-mocks Makefile target
  • Loading branch information
k8s-ci-robot authored Nov 26, 2020
2 parents d1fdfdc + 207bded commit cdf591f
Show file tree
Hide file tree
Showing 11 changed files with 890 additions and 30 deletions.
13 changes: 11 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ local-image-run: ## Run a locally build image to use the tools of this repositor

##@ Dependencies

.SILENT: update-deps update-deps-go
.PHONY: update-deps update-deps-go
.SILENT: update-deps update-deps-go update-mocks
.PHONY: update-deps update-deps-go update-mocks

update-deps: update-deps-go ## Update all dependencies for this repo
echo -e "${COLOR}Commit/PR the following changes:${NOCOLOR}"
Expand All @@ -134,6 +134,15 @@ update-deps-go: ## Update all golang dependencies for this repo
$(MAKE) test-go-unit
./hack/update-all.sh

update-mocks: ## Update all generated mocks
go generate ./...
for f in $(shell find . -name fake_*.go); do \
cp hack/boilerplate/boilerplate.go.txt tmp ;\
sed -i 's/YEAR/$(shell date +"%Y")/g' tmp ;\
cat $$f >> tmp ;\
mv tmp $$f ;\
done

##@ Helpers

.PHONY: help
Expand Down
16 changes: 16 additions & 0 deletions pkg/anago/anagofakes/fake_release_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions pkg/anago/anagofakes/fake_release_impl.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions pkg/changelog/changelogfakes/fake_impl.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 21 additions & 16 deletions pkg/kubepkg/kubepkgfakes/fake_impl.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions pkg/mail/mailfakes/fake_apiclient.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions pkg/mail/mailfakes/fake_send_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions pkg/notes/notesfakes/fake_mo_diff.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cdf591f

Please sign in to comment.