Skip to content

Commit 18c9f33

Browse files
authored
chore: use tailscale extra small buildflags (#9490)
Ref: #9380
1 parent 27ab0d9 commit 18c9f33

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/build_go.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,11 @@ ldflags=(
101101

102102
# We use ts_omit_aws here because on Linux it prevents Tailscale from importing
103103
# github.com/aws/aws-sdk-go-v2/aws, which adds 7 MB to the binary.
104+
TS_EXTRA_SMALL="ts_omit_aws,ts_omit_bird,ts_omit_tap,ts_omit_kube"
104105
if [[ "$slim" == 0 ]]; then
105-
build_args+=(-tags "embed,ts_omit_aws")
106+
build_args+=(-tags "embed,$TS_EXTRA_SMALL")
106107
else
107-
build_args+=(-tags "slim,ts_omit_aws")
108+
build_args+=(-tags "slim,$TS_EXTRA_SMALL")
108109
fi
109110
if [[ "$agpl" == 1 ]]; then
110111
# We don't use a tag to control AGPL because we don't want code to depend on

0 commit comments

Comments
 (0)