Skip to content

Commit

Permalink
Added update-stores-version Makefile target
Browse files Browse the repository at this point in the history
  • Loading branch information
eko committed Aug 7, 2023
1 parent f1d5465 commit 97d251d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
@@ -1,4 +1,8 @@
.PHONY: mocks test benchmark-store
.PHONY: update-stores-version mocks test benchmark-store

# Usage: VERSION=v4.1.3 make update-stores-version
update-stores-version:
ls store/ | xargs -I % bash -c "sed -i '' -E 's,github.com/eko/gocache/lib/v4 v[0-9]\.[0-9]\.[0-9],github.com/eko/gocache/lib/v4 ${VERSION},g' store/%/go.mod"

mocks:
mockgen -source=lib/cache/interface.go -destination=lib/cache/cache_mock.go -package=cache
Expand Down

0 comments on commit 97d251d

Please sign in to comment.