chore: Use version/VERSION as single source of version number
This updates the version make target to use the version/VERSION file in the same manner as the build system. This ensures that the VERSION file is the single source of truth for the version number.
This commit is contained in:
1 file changed
+4
-1
@@ -381,7 +381,10 @@ docker-build-dev: build
|
||||
.PHONY: version
|
||||
# This is used for release builds by .github/workflows/build.yml
|
||||
version:
|
||||
@go run ./cmd/boundary version | awk '/Version Number:/ { print $$3 }'
|
||||
@go run \
|
||||
-ldflags "-X 'github.com/hashicorp/boundary/version.Version=$(shell cat version/VERSION)'" \
|
||||
./cmd/boundary version \
|
||||
| awk '/Version Number:/ { print $$3 }'
|
||||
|
||||
EDITION?=
|
||||
.PHONY: edition
|
||||
|
||||
Reference in new issue
Block a user