Skip to content

Commit d2ab719

Browse files
authored
Makefile: fix VERSION_FLAGS (#667)
Since 1c28383 build info variables are defined in "github.com/mgechev/revive/cli", not "main". Fixes #666
1 parent b6c86a2 commit d2ab719

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ GIT_COMMIT ?= $(shell git rev-parse --verify HEAD)
66
GIT_VERSION ?= $(shell git describe --tags --always --dirty="-dev")
77
DATE ?= $(shell date -u '+%Y-%m-%d %H:%M UTC')
88
BUILDER ?= Makefile
9-
VERSION_FLAGS := -X "main.version=$(GIT_VERSION)" -X "main.date=$(DATE)" -X "main.commit=$(GIT_COMMIT)" -X "main.builtBy=$(BUILDER)"
9+
VERSION_FLAGS := -X "github.com/mgechev/revive/cli.version=$(GIT_VERSION)" -X "github.com/mgechev/revive/cli.date=$(DATE)" -X "github.com/mgechev/revive/cli.commit=$(GIT_COMMIT)" -X "github.com/mgechev/revive/cli.builtBy=$(BUILDER)"
1010

1111
install:
1212
@go mod vendor

0 commit comments

Comments
 (0)