mirror of
https://github.com/vbatts/go-mtree.git
synced 2025-07-13 18:29:11 +00:00
*: move version from library to cmd, and generate it
oh dang, I released 0.5.2 and 0.5.3 without correctly setting the version string :-\ Ideally this "-dev" is attempting to be like the git. So, ditch the version in the library. Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
84c498b361
commit
630389965c
3 changed files with 5 additions and 26 deletions
2
Makefile
2
Makefile
|
@ -82,7 +82,7 @@ CLEAN_FILES += .cli.test .cli.test.tags
|
|||
build: $(BUILD)
|
||||
|
||||
$(BUILD): $(SOURCE_FILES)
|
||||
go build -mod=vendor -o $(BUILD) $(BUILDPATH)
|
||||
go build -ldflags="-X 'main.Version=$(shell git describe --always --dirty)'" -mod=vendor -o $(BUILD) $(BUILDPATH)
|
||||
|
||||
install.tools:
|
||||
@go install -u github.com/fatih/color@latest ; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue