chore: use tailscale extra small buildflags (#9490)

Ref: #9380
This commit is contained in:
Mathias Fredriksson 2023-09-01 22:14:56 +03:00 committed by GitHub
parent 27ab0d9a84
commit 18c9f33dec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -101,10 +101,11 @@ ldflags=(
# We use ts_omit_aws here because on Linux it prevents Tailscale from importing
# github.com/aws/aws-sdk-go-v2/aws, which adds 7 MB to the binary.
TS_EXTRA_SMALL="ts_omit_aws,ts_omit_bird,ts_omit_tap,ts_omit_kube"
if [[ "$slim" == 0 ]]; then
build_args+=(-tags "embed,ts_omit_aws")
build_args+=(-tags "embed,$TS_EXTRA_SMALL")
else
build_args+=(-tags "slim,ts_omit_aws")
build_args+=(-tags "slim,$TS_EXTRA_SMALL")
fi
if [[ "$agpl" == 1 ]]; then
# We don't use a tag to control AGPL because we don't want code to depend on