Skip to content

Commit

Permalink
allow lightweight tags as version, remove dirty tage
Browse files Browse the repository at this point in the history
  • Loading branch information
mozoarella committed Feb 18, 2024
1 parent c1b8c70 commit 1124d95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1124d95

Please sign in to comment.