From 96f69b8e1313c0ccdf0ff5d3a4dda74ee3fa086a Mon Sep 17 00:00:00 2001 From: Ethan <39577870+ethanndickson@users.noreply.github.com> Date: Fri, 23 May 2025 15:03:09 +1000 Subject: [PATCH] chore: set slim tag when compiling `coder-vpn.dylib` (#18001) ``` $ du -sh before.dylib after.dylib 35M before.dylib 30M after.dylib ``` --- scripts/build_go.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build_go.sh b/scripts/build_go.sh index 3e23e15d8b..97d9431beb 100755 --- a/scripts/build_go.sh +++ b/scripts/build_go.sh @@ -144,10 +144,10 @@ fi # 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_EXTRA_SMALL") -else +if [[ "$slim" == 1 || "$dylib" == 1 ]]; then build_args+=(-tags "slim,$TS_EXTRA_SMALL") +else + build_args+=(-tags "embed,$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