Merge pull request #381 from nhooyr/trimpath-0bdc

release: Build with -trimpath
This commit is contained in:
Anmol Sethi 2022-12-06 06:38:04 -08:00 committed by GitHub
commit 832c1ab06b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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" .