Cobra doesn't obey the build-time variables
Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user