Skip to content

Commit

Permalink
update make to properly update the v9 module version variables
Browse files Browse the repository at this point in the history
  • Loading branch information
jcvrabo committed Oct 21, 2024
1 parent 698509c commit 87c5248
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ CF_BUILD_VERSION ?= $$(cat BUILD_VERSION) # TODO: version specific
CF_BUILD_SHA ?= $$(git rev-parse --short HEAD)
CF_BUILD_DATE ?= $$(date -u +"%Y-%m-%d")
LD_FLAGS_COMMON=-w -s \
-X code.cloudfoundry.org/cli/version.binarySHA=$(CF_BUILD_SHA) \
-X code.cloudfoundry.org/cli/version.binaryBuildDate=$(CF_BUILD_DATE)
-X code.cloudfoundry.org/cli/v9/version.binarySHA=$(CF_BUILD_SHA) \
-X code.cloudfoundry.org/cli/v9/version.binaryBuildDate=$(CF_BUILD_DATE)
LD_FLAGS =$(LD_FLAGS_COMMON) \
-X code.cloudfoundry.org/cli/version.binaryVersion=$(CF_BUILD_VERSION)
-X code.cloudfoundry.org/cli/v9/version.binaryVersion=$(CF_BUILD_VERSION)
LD_FLAGS_LINUX = -extldflags \"-static\" $(LD_FLAGS)
REQUIRED_FOR_STATIC_BINARY =-a -tags "netgo" -installsuffix netgo
GOSRC = $(shell find . -name "*.go" ! -name "*test.go" ! -name "*fake*" ! -path "./integration/*")
Expand Down

0 comments on commit 87c5248

Please sign in to comment.