Skip to content

Commit 8929b24

Browse files
committed
FAB-6351 Fix orderer version command
The orderer version command is currently not working correctly when the orderer is built via make release. Turns out that the metadata flags were not being properly set when running `make release`. `make orderer` works as expected. Change-Id: I582362e08c791abcc14e083aecc5d888caeb57d8 Signed-off-by: Gari Singh <[email protected]>
1 parent d54542f commit 8929b24

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,8 @@ release/%/bin/cryptogen: $(PROJECT_FILES)
348348
mkdir -p $(@D)
349349
$(CGO_FLAGS) GOOS=$(GOOS) GOARCH=$(GOARCH) go build -o $(abspath $@) -tags "$(GO_TAGS)" -ldflags "$(GO_LDFLAGS)" $(pkgmap.$(@F))
350350

351+
release/%/bin/orderer: GO_LDFLAGS = $(patsubst %,-X $(PKGNAME)/common/metadata.%,$(METADATA_VAR))
352+
351353
release/%/bin/orderer: $(PROJECT_FILES)
352354
@echo "Building $@ for $(GOOS)-$(GOARCH)"
353355
mkdir -p $(@D)

0 commit comments

Comments
 (0)