From 0b5e21a6f59a029289d8bb7512fbd4522ca74bca Mon Sep 17 00:00:00 2001 From: abs3nt Date: Sun, 18 Feb 2024 09:19:18 -0800 Subject: [PATCH] makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 98d02fa..5dde270 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ build: gospt-ng gospt-ng: $(shell find . -name '*.go') - go build -o gospt-ng . + go build -ldflags="-X 'git.asdf.cafe/abs3nt/gospt-ng/src/components/cli.Version=$(shell git rev-parse --short HEAD)'" . run: go run main.go