aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-05 23:03:37 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-05 23:03:37 +0800
commit79232e8adfc61d62158a0b14b2c9c0fc1599e96d (patch)
treedbd4c1399bad29890548e2470ce59e3680b1bfdf
parentHooks: Fix for non-Linux systems (diff)
downloadforge-0.1.26.tar.gz
forge-0.1.26.tar.zst
forge-0.1.26.zip
Makefile: Fix version linker flagv0.1.26
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index eb2df23..d4f868a 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ VERSION = $(shell git describe --tags --always --dirty)
SOURCE_FILES = $(shell git ls-files)
forge: source.tar.gz hookc/hookc git2d/git2d $(SOURCE_FILES)
- CGO_ENABLED=0 go build -o forge -ldflags '-extldflags "-f no-PIC -static" -X "main.VERSION=$(VERSION)"' -tags 'osusergo netgo static_build' ./cmd/forge
+ CGO_ENABLED=0 go build -o forge -ldflags '-extldflags "-f no-PIC -static" -X "go.lindenii.runxiyu.org/forge.version=$(VERSION)"' -tags 'osusergo netgo static_build' ./cmd/forge
utils/colb: