Cobra doesn't obey the build-time variables

Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
This commit is contained in:
2026-01-22 13:43:48 -03:00
parent 3def8e4eee
commit 618908f54b
4 changed files with 2 additions and 24 deletions

View File

@@ -6,10 +6,6 @@ env:
GO: go
GOTELEMETRY: off
vars:
IMPORT: code.laidback.moe/yuki
VERSION: 2026.01.21
tasks:
default:
cmds:
@@ -17,7 +13,7 @@ tasks:
build:
desc: Build the interface
cmds:
- $GO build -v -ldflags='-w -X {{.IMPORT}}.Version={{.VERSION}}' -buildvcs=false -o yuki
- $GO build -buildmode=exe -buildvcs=false -v
clean:
desc: Remove generated files
cmds: