Skip to content

Commit d8718c3

Browse files
authored
chore: add ts_omit_aws tag to remove aws dependency pulled in by tailscale (#9486)
On Linux, this saves us 7 MB. Ref: #9380
1 parent f1f9cb0 commit d8718c3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/build_go.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,12 @@ ldflags=(
9999
-X "'github.com/coder/coder/v2/buildinfo.tag=$version'"
100100
)
101101

102+
# We use ts_omit_aws here because on Linux it prevents Tailscale from importing
103+
# github.com/aws/aws-sdk-go-v2/aws, which adds 7 MB to the binary.
102104
if [[ "$slim" == 0 ]]; then
103-
build_args+=(-tags embed)
105+
build_args+=(-tags "embed,ts_omit_aws")
104106
else
105-
build_args+=(-tags slim)
107+
build_args+=(-tags "slim,ts_omit_aws")
106108
fi
107109
if [[ "$agpl" == 1 ]]; then
108110
# We don't use a tag to control AGPL because we don't want code to depend on

0 commit comments

Comments
 (0)