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: I582362e08c791abcc14e083aecc5d888caeb57d8
Signed-off-by: Gari Singh <gari.r.singh@gmail.com>
  • Loading branch information
mastersingh24 committed Sep 29, 2017
1 parent d54542f commit 8929b24
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 @@ -348,6 +348,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 8929b24

Please sign in to comment.