1
0
Fork 0
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:
Vincent Batts 2023-03-22 11:14:24 -04:00
parent 84c498b361
commit 630389965c
Signed by: vbatts
GPG key ID: E30EFAA812C6E5ED
3 changed files with 5 additions and 26 deletions

View file

@ -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 ; \