control/controlhttp: don't link ts2021 server + websocket code on iOS

We probably shouldn't link it in anywhere, but let's fix iOS for now.

Updates #13762
Updates tailscale/corp#20099

Change-Id: Idac116e9340434334c256acba3866f02bd19827c
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick 2024-10-09 18:16:42 -07:00 committed by Brad Fitzpatrick
parent 52ef27ab7c
commit 367fba8520
2 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,8 @@
// Copyright (c) Tailscale Inc & AUTHORS // Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause // SPDX-License-Identifier: BSD-3-Clause
//go:build !ios
package controlhttp package controlhttp
import ( import (

View File

@ -14,9 +14,11 @@ func TestDeps(t *testing.T) {
GOOS: "ios", GOOS: "ios",
GOARCH: "arm64", GOARCH: "arm64",
BadDeps: map[string]string{ BadDeps: map[string]string{
"testing": "do not use testing package in production code", "testing": "do not use testing package in production code",
"text/template": "linker bloat (MethodByName)", "text/template": "linker bloat (MethodByName)",
"html/template": "linker bloat (MethodByName)", "html/template": "linker bloat (MethodByName)",
"tailscale.com/net/wsconn": "https://github.com/tailscale/tailscale/issues/13762",
"github.com/coder/websocket": "https://github.com/tailscale/tailscale/issues/13762",
}, },
}.Check(t) }.Check(t)
} }