Skip to content

Commit

Permalink
Fix the version, the variable will be replaced in the build time
Browse files Browse the repository at this point in the history
  • Loading branch information
hwchiu committed Jul 19, 2018
1 parent 07cd099 commit d4c5de8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ govendor-sync:

.PHONY: src.build
src.build:
$(GO) build -ldflags "-X github.com/linkernetworks/vortex/src/version.version=1.0.0" -v ./src/...
$(GO) build -v ./src/...
$(MKDIR_P) $(BUILD_FOLDER)/src/cmd/vortex/
$(GO) build -v -o $(BUILD_FOLDER)/src/cmd/vortex/vortex ./src/cmd/vortex/...
$(GO) build -v -o $(BUILD_FOLDER)/src/cmd/vortex/vortex -ldflags="-X github.com/linkernetworks/vortex/src/version.version=1.0.0" ./src/cmd/vortex/...

.PHONY: src.test
src.test:
Expand Down

0 comments on commit d4c5de8

Please sign in to comment.