2023-10-11 14:14:37 -07:00
|
|
|
// Copyright (c) Tailscale Inc & AUTHORS
|
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"tailscale.com/tstest/deptest"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestDeps(t *testing.T) {
|
|
|
|
deptest.DepChecker{
|
|
|
|
BadDeps: map[string]string{
|
2024-05-23 23:13:32 -07:00
|
|
|
"testing": "do not use testing package in production code",
|
2023-10-11 14:14:37 -07:00
|
|
|
"gvisor.dev/gvisor/pkg/buffer": "https://github.com/tailscale/tailscale/issues/9756",
|
|
|
|
"gvisor.dev/gvisor/pkg/cpuid": "https://github.com/tailscale/tailscale/issues/9756",
|
|
|
|
"gvisor.dev/gvisor/pkg/tcpip": "https://github.com/tailscale/tailscale/issues/9756",
|
|
|
|
"gvisor.dev/gvisor/pkg/tcpip/header": "https://github.com/tailscale/tailscale/issues/9756",
|
2024-06-16 11:34:11 -07:00
|
|
|
"tailscale.com/wgengine/filter": "brings in bart, etc",
|
|
|
|
"github.com/bits-and-blooms/bitset": "unneeded in CLI",
|
|
|
|
"github.com/gaissmai/bart": "unneeded in CLI",
|
|
|
|
"tailscale.com/net/ipset": "unneeded in CLI",
|
2023-10-11 14:14:37 -07:00
|
|
|
},
|
|
|
|
}.Check(t)
|
|
|
|
}
|