mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
chore: add ts_omit_aws
tag to remove aws dependency pulled in by tailscale (#9486)
On Linux, this saves us 7 MB. Ref: #9380
This commit is contained in:
committed by
GitHub
parent
f1f9cb030d
commit
d8718c3818
@ -99,10 +99,12 @@ ldflags=(
|
|||||||
-X "'github.com/coder/coder/v2/buildinfo.tag=$version'"
|
-X "'github.com/coder/coder/v2/buildinfo.tag=$version'"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# 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.
|
||||||
if [[ "$slim" == 0 ]]; then
|
if [[ "$slim" == 0 ]]; then
|
||||||
build_args+=(-tags embed)
|
build_args+=(-tags "embed,ts_omit_aws")
|
||||||
else
|
else
|
||||||
build_args+=(-tags slim)
|
build_args+=(-tags "slim,ts_omit_aws")
|
||||||
fi
|
fi
|
||||||
if [[ "$agpl" == 1 ]]; then
|
if [[ "$agpl" == 1 ]]; then
|
||||||
# We don't use a tag to control AGPL because we don't want code to depend on
|
# We don't use a tag to control AGPL because we don't want code to depend on
|
||||||
|
Reference in New Issue
Block a user