2023-01-27 21:37:20 +00:00
|
|
|
// Copyright (c) Tailscale Inc & AUTHORS
|
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2022-04-20 19:14:45 +00:00
|
|
|
|
|
|
|
package iosdeps
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
2023-07-21 01:26:52 +00:00
|
|
|
|
|
|
|
"tailscale.com/tstest/deptest"
|
2022-04-20 19:14:45 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestDeps(t *testing.T) {
|
2023-07-21 01:26:52 +00:00
|
|
|
deptest.DepChecker{
|
|
|
|
GOOS: "ios",
|
|
|
|
GOARCH: "arm64",
|
|
|
|
BadDeps: map[string]string{
|
2024-10-10 03:34:11 +00:00
|
|
|
"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",
|
2024-10-10 14:57:09 +00:00
|
|
|
"github.com/tailscale/hujson": "no config file support on iOS",
|
2023-07-21 01:26:52 +00:00
|
|
|
},
|
|
|
|
}.Check(t)
|
2022-04-20 19:14:45 +00:00
|
|
|
}
|