Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
build: update version lookup logic (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
tneely authored and Li committed Nov 15, 2021
1 parent 72ee50c commit f96489a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cli/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
BINARY_NAME=agc
PACKAGES=./internal...
SOURCE_DOCS=${PWD}/site
VERSION_FILE=../../version.json
GOBIN=${PWD}/bin/tools
COVERAGE=coverage.out

DESTINATION=./bin/local/${BINARY_NAME}
VERSION=$(shell git describe --always --tags)
VERSION=$(shell jq .version -r < ${VERSION_FILE})

LINKER_FLAGS=-X github.com/aws/amazon-genomics-cli/internal/pkg/version.Version=${VERSION}
# RELEASE_BUILD_LINKER_FLAGS disables DWARF and symbol table generation to reduce binary size
Expand Down

0 comments on commit f96489a

Please sign in to comment.