Skip to content

Commit

Permalink
Makefile: fix VERSION_FLAGS (#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 #666
  • Loading branch information
r-ricci committed Apr 4, 2022
1 parent b6c86a2 commit d2ab719
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 d2ab719

Please sign in to comment.