mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-27 10:47:35 +00:00

We had the debug packet capture code + Lua dissector in the CLI + the iOS app. Now we don't, with tests to lock it in. As a bonus, tailscale.com/net/packet and tailscale.com/net/flowtrack no longer appear in the CLI's binary either. A new build tag ts_omit_capture disables the packet capture code and was added to build_dist.sh's --extra-small mode. Updates #12614 Change-Id: I79b0628c0d59911bd4d510c732284d97b0160f10 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
31 lines
1.2 KiB
Go
31 lines
1.2 KiB
Go
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
package iosdeps
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"tailscale.com/tstest/deptest"
|
|
)
|
|
|
|
func TestDeps(t *testing.T) {
|
|
deptest.DepChecker{
|
|
GOOS: "ios",
|
|
GOARCH: "arm64",
|
|
BadDeps: map[string]string{
|
|
"testing": "do not use testing package in production code",
|
|
"text/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",
|
|
"github.com/mitchellh/go-ps": "https://github.com/tailscale/tailscale/pull/13759",
|
|
"database/sql/driver": "iOS doesn't use an SQL database",
|
|
"github.com/google/uuid": "see tailscale/tailscale#13760",
|
|
"tailscale.com/clientupdate/distsign": "downloads via AppStore, not distsign",
|
|
"github.com/tailscale/hujson": "no config file support on iOS",
|
|
"tailscale.com/feature/capture": "no debug packet capture on iOS",
|
|
},
|
|
}.Check(t)
|
|
}
|