Monorepo for Tangled
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

knotserver: fix air ldflags path for version injection

.air/knot.toml targets tangled.org/core/knotserver.version, but the
actual version variable is at tangled.org/core/knotserver/xrpc.version
(knotserver/xrpc/version.go:12). Dev builds via air therefore never
set the version variable, falling through to the debug.ReadBuildInfo()
fallback in version.go.

Signed-off-by: Anish Lakhwara <anish+git@lakhwara.com>

+1 -1
+1 -1
.air/knot.toml
··· 2 2 tmp_dir = "out" 3 3 4 4 [build] 5 - cmd = 'go build -ldflags "-X tangled.org/core/knotserver.version=$(git describe --tags --long)" -o out/knot.out cmd/knot/main.go' 5 + cmd = 'go build -ldflags "-X tangled.org/core/knotserver/xrpc.version=$(git describe --tags --long)" -o out/knot.out cmd/knot/main.go' 6 6 bin = "out/knot.out" 7 7 args_bin = ["server"] 8 8