From 1124d954dd71b106b74d4cdadcd66a1edc572d6f Mon Sep 17 00:00:00 2001 From: Dylan Maassen van den Brink Date: Mon, 19 Feb 2024 00:32:38 +0100 Subject: [PATCH] allow lightweight tags as version, remove dirty tage --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 9350c1f..232bc6c 100644 --- a/Makefile +++ b/Makefile @@ -2,10 +2,10 @@ get-deps: go get . build-linux-amd64: - GOOS=linux GOARCH=amd64 go build -ldflags "-w -s -X github.com/tibbyrocks/tibby/internal/commands/tibbycmds.version=$(shell git describe --always --long --dirty)" -o bin/tibby_linux_amd64 + GOOS=linux GOARCH=amd64 go build -ldflags "-w -s -X github.com/tibbyrocks/tibby/internal/commands/tibbycmds.version=$(shell git describe --tags --always --longy)" -o bin/tibby_linux_amd64 build-linux-arm64: - GOOS=linux GOARCH=arm64 go build -ldflags "-w -s -X github.com/tibbyrocks/tibby/internal/commands/tibbycmds.version=$(shell git describe --always --long --dirty)" -o bin/tibby_linux_arm64 + GOOS=linux GOARCH=arm64 go build -ldflags "-w -s -X github.com/tibbyrocks/tibby/internal/commands/tibbycmds.version=$(shell git describe --tags --always --long)" -o bin/tibby_linux_arm64 build-windows-amd64: - GOOS=windows GOARCH=amd64 go build -ldflags "-w -s -X github.com/tibbyrocks/tibby/internal/commands/tibbycmds.version=$(shell git describe --always --long --dirty)" -o bin/tibby_windows_amd64.exe + GOOS=windows GOARCH=amd64 go build -ldflags "-w -s -X github.com/tibbyrocks/tibby/internal/commands/tibbycmds.version=$(shell git describe --tags --always --long)" -o bin/tibby_windows_amd64.exe build-all: build-linux-amd64 build-linux-arm64 build-windows-amd64 \ No newline at end of file