Skip to content

Commit

Permalink
FAB-6351 Fix orderer version command
Browse files Browse the repository at this point in the history
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: I1960c5461f23770ed8e0f80929447b60b7456912
Signed-off-by: Gari Singh <gari.r.singh@gmail.com>
  • Loading branch information
mastersingh24 committed Sep 29, 2017
1 parent a945767 commit f9a1ef7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,8 @@ release/%/bin/cryptogen: $(PROJECT_FILES)
mkdir -p $(@D)
$(CGO_FLAGS) GOOS=$(GOOS) GOARCH=$(GOARCH) go build -o $(abspath $@) -tags "$(GO_TAGS)" -ldflags "$(GO_LDFLAGS)" $(pkgmap.$(@F))

release/%/bin/orderer: GO_LDFLAGS = $(patsubst %,-X $(PKGNAME)/common/metadata.%,$(METADATA_VAR))

release/%/bin/orderer: $(PROJECT_FILES)
@echo "Building $@ for $(GOOS)-$(GOARCH)"
mkdir -p $(@D)
Expand Down

0 comments on commit f9a1ef7

Please sign in to comment.