Merge pull request #381 from nhooyr/trimpath-0bdc
release: Build with -trimpath
This commit is contained in:
commit
832c1ab06b
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ sh_c find "$HW_BUILD_DIR" -exec touch {} \\\;
|
|||
ensure_goos
|
||||
ensure_goarch
|
||||
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'" \
|
||||
-o "$HW_BUILD_DIR/bin/d2" .
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue