mirror of
https://github.com/Threnklyn/jira.git
synced 2026-05-26 07:38:31 +02:00
fix CURVER in case of building from src tar.gz
This commit is contained in:
@@ -18,7 +18,7 @@ export GOPATH=$(shell pwd)
|
||||
GOBIN ?= $(shell pwd)/bin
|
||||
NAME=jira
|
||||
|
||||
CURVER ?= $(shell git describe --abbrev=0 --tags)
|
||||
CURVER ?= $(shell [ -d .git ] && git describe --abbrev=0 --tags || grep ^\#\# CHANGELOG.md | awk '{print $$2; exit}')
|
||||
LDFLAGS:=-X main.buildVersion=$(CURVER)
|
||||
|
||||
build: src/github.com/Netflix-Skunkworks/go-jira
|
||||
|
||||
Reference in New Issue
Block a user