From 2e891997b737c2d68b9fc06d9b197e9f23ce0dd1 Mon Sep 17 00:00:00 2001 From: Justin McCarthy Date: Fri, 11 May 2018 00:13:28 -0700 Subject: [PATCH] version --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f5b75e6..c4d9b37 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ comply: assets $(GO_SOURCES) dist: clean $(eval VERSION := $(shell git describe --tags --always --dirty="-dev")) - $(eval LDFLAGS := -ldflags='-X "cli.Version=$(VERSION)"') + $(eval LDFLAGS := -ldflags='-X "github.com/strongdm/comply/internal/cli.Version=$(VERSION)"') mkdir dist echo $(VERSION) GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -gcflags=-trimpath=$(GOPATH) -asmflags=-trimpath=$(GOPATH) $(LDFLAGS) -o dist/comply-$(VERSION)-darwin-amd64 ./cmd/comply @@ -26,7 +26,7 @@ dist: clean brew: clean assets $(GO_SOURCES) $(eval VERSION := $(shell cat version)) - $(eval LDFLAGS := -ldflags='-X "cli.Version=$(VERSION)"') + $(eval LDFLAGS := -ldflags='-X "github.com/strongdm/comply/internal/cli.Version=$(VERSION)"') mkdir bin GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -gcflags=-trimpath=$(GOPATH) -asmflags=-trimpath=$(GOPATH) $(LDFLAGS) -o bin/comply ./cmd/comply