From b7d8dc2d726ec9d46fa561760f405f73e1a41739 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20M=C3=B6hlmann?= Date: Thu, 14 Sep 2023 16:30:59 +0300 Subject: [PATCH] chore(make): use a timestamp suffix to the default version (#6559) When doing local builds, the `VERSION` was always set to `development`. When running this local build, database migration would be skipped, as the version did not change. This change suffixes `developement` with the dynamic timestamp from `now`, so that migrations are always executed when developing. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ec88b80a0b..6495993ede 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ gen_authopt_path := "$(go_bin)/protoc-gen-authoption" gen_zitadel_path := "$(go_bin)/protoc-gen-zitadel" now := $(shell date --rfc-3339=seconds | sed 's/ /T/') -VERSION ?= development +VERSION ?= development-$(now) COMMIT_SHA ?= $(shell git rev-parse HEAD) .PHONY: compile