Skip to content

Commit ccb152f

Browse files
committed
fix: eirctl update
1 parent a37b65f commit ccb152f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎eirctl.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ tasks:
4646
- |
4747
mkdir -p .deps
4848
unset GOTOOLCHAIN
49-
ldflags="-s -w -X \"main.Version=${VERSION}\" -X \"main.Revision=${REVISION}\" -extldflags -static"
49+
ldflags="-s -w -X \"main.Version={{ .Env.VERSION | default "not-supplied" }}\" -X \"main.Revision={{ .Env.REVISION | default "not-supplied" }}\" -extldflags -static"
5050
export GOPATH=/eirctl/.deps GOOS=${BUILD_GOOS} GOARCH=${BUILD_GOARCH} CGO_ENABLED=0
5151
go build -mod=readonly -buildvcs=false -ldflags="$ldflags" \
5252
-o dist/$PLUGIN-${BUILD_GOOS}-${BUILD_GOARCH}${BUILD_SUFFIX} main.go

0 commit comments

Comments
 (0)