From 97d251de3980934955e5788879619fa10146c371 Mon Sep 17 00:00:00 2001 From: Vincent Composieux Date: Mon, 7 Aug 2023 10:25:47 +0200 Subject: [PATCH] Added update-stores-version Makefile target --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a404715a..6451a394 100644 --- a/Makefile +++ b/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