Skip to content

Commit

Permalink
Makefile: fix VERSION_FLAGS (mgechev#667)
Browse files Browse the repository at this point in the history
Since 1c28383 build info variables
are defined in "github.com/mgechev/revive/cli", not "main".

Fixes mgechev#666
  • Loading branch information
r-ricci authored and subham-deepsource committed Apr 8, 2022
1 parent 8f8bbf5 commit 79d8960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ GIT_COMMIT ?= $(shell git rev-parse --verify HEAD)
GIT_VERSION ?= $(shell git describe --tags --always --dirty="-dev")
DATE ?= $(shell date -u '+%Y-%m-%d %H:%M UTC')
BUILDER ?= Makefile
VERSION_FLAGS := -X "main.version=$(GIT_VERSION)" -X "main.date=$(DATE)" -X "main.commit=$(GIT_COMMIT)" -X "main.builtBy=$(BUILDER)"
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)"

install:
@go mod vendor
Expand Down

0 comments on commit 79d8960

Please sign in to comment.