Skip to content

Commit

Permalink
Merge pull request #509 from atc0005/fix-build-version-insertion
Browse files Browse the repository at this point in the history
Fix build version insertion
  • Loading branch information
atc0005 authored Mar 27, 2024
2 parents fbb6035 + f78a7dc commit 6306168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export SEMVER := $(REPO_VERSION)
# CGO_ENABLED=1
# CGO is disabled by default for cross-compilation. You need to enable it
# explicitly to use CGO for multiple architectures.
BUILD_LDFLAGS_COMMON := -s -w -X $(VERSION_VAR_PKG).version=$(VERSION)
BUILD_LDFLAGS_COMMON := -s -w -X $(VERSION_VAR_PKG).version=$(REPO_VERSION)
BUILD_LDFLAGS_STATIC := -linkmode=external -extldflags '-static'
BUILDCMD_COMMON := CGO_ENABLED=1 go build -mod=vendor -a -trimpath
BUILDCMD_STATIC := $(BUILDCMD_COMMON) -tags 'osusergo,netgo,sqlite_omit_load_extension' -ldflags "$(BUILD_LDFLAGS_STATIC) $(BUILD_LDFLAGS_COMMON)"
Expand Down

0 comments on commit 6306168

Please sign in to comment.