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:
Timothy Messier committed 2023-08-02 17:27:47 +00:00
1 parent ecadeaee2d
commit af92f20633
1 file changed
+4 -1
+4 -1
View File
@@ -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