Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Commit 1d43494

Browse files
committed
fix build and run issues
Signed-off-by: Johan Siebens <[email protected]>
1 parent 2f2fa87 commit 1d43494

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ test:
1212

1313
.PHONY: build
1414
build:
15-
go build -ldflags $(LDFLAGS)
15+
CGO_ENABLED=0 go build -ldflags $(LDFLAGS) -a -installsuffix cgo -o dist/do-droplets
1616

1717
.PHONY: dist
1818
dist:

scripts/dist.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ if [ $1 == "windows" ]; then
55
suffix=".exe"
66
fi
77

8-
GOOS=$1 GOARCH=$2 go build -ldflags "-s -w" -o "dist/do-droplets${suffix}"
8+
CGO_ENABLED=0 GOOS=$1 GOARCH=$2 go build -ldflags "-s -w" -a -installsuffix cgo -o "dist/do-droplets${suffix}"
99
zip -j dist/do-droplets_$1_$2.zip "dist/do-droplets${suffix}"
1010
rm -rf "dist/do-droplets${suffix}"

0 commit comments

Comments
 (0)