Skip to content

Commit f3a4433

Browse files
committed
Improve mise build output to show go build command and resulting binary
Assisted-By: docker-agent
1 parent c43c6d8 commit f3a4433

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.mise/scripts/build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ case "$OSTYPE" in
1010
msys*|cygwin*) BINARY_NAME="${BINARY_NAME}.exe" ;;
1111
esac
1212

13-
go build -ldflags "$LDFLAGS" -o ./bin/${BINARY_NAME} ./main.go
13+
(
14+
set -x
15+
go build -v -ldflags "$LDFLAGS" -o ./bin/${BINARY_NAME} ./main.go
16+
)
17+
echo "Built ./bin/${BINARY_NAME}"
1418

1519
if [ "${CI:-}" != "true" ]; then
1620
ln -sf "$(pwd)/bin/${BINARY_NAME}" "${HOME}/bin/${BINARY_NAME}" 2>/dev/null || true

0 commit comments

Comments
 (0)