release: Build with -trimpath
-trimpath prevents paths from the builder showing up in the binary on panics and whatnot.
This commit is contained in:
parent
1b1a024aad
commit
5f06afc72e
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ sh_c find "$HW_BUILD_DIR" -exec touch {} \\\;
|
||||||
ensure_goos
|
ensure_goos
|
||||||
ensure_goarch
|
ensure_goarch
|
||||||
sh_c mkdir -p "$HW_BUILD_DIR/bin"
|
sh_c mkdir -p "$HW_BUILD_DIR/bin"
|
||||||
sh_c CGO_ENABLED=0 go build \
|
sh_c CGO_ENABLED=0 go build -trimpath \
|
||||||
-ldflags "'-X oss.terrastruct.com/d2/lib/version.Version=$VERSION'" \
|
-ldflags "'-X oss.terrastruct.com/d2/lib/version.Version=$VERSION'" \
|
||||||
-o "$HW_BUILD_DIR/bin/d2" .
|
-o "$HW_BUILD_DIR/bin/d2" .
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue