feature/featuretags, all: add build features, use existing ones in more places
Saves 270 KB. Updates #12614 Change-Id: I4c3fe06d32c49edb3a4bb0758a8617d83f291cf5 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
aa5b2ce83b
commit
c45f8813b4
@@ -237,16 +237,22 @@ func minTags() string {
|
||||
}
|
||||
|
||||
func TestMinTailscaledNoCLI(t *testing.T) {
|
||||
badSubstrs := []string{
|
||||
"cbor",
|
||||
"regexp",
|
||||
"golang.org/x/net/proxy",
|
||||
"internal/socks",
|
||||
"github.com/tailscale/peercred",
|
||||
}
|
||||
deptest.DepChecker{
|
||||
GOOS: "linux",
|
||||
GOARCH: "amd64",
|
||||
Tags: minTags(),
|
||||
OnDep: func(dep string) {
|
||||
if strings.Contains(dep, "regexp") {
|
||||
t.Errorf("unexpected dep: %q", dep)
|
||||
}
|
||||
if strings.Contains(dep, "cbor") {
|
||||
t.Errorf("unexpected dep: %q", dep)
|
||||
for _, bad := range badSubstrs {
|
||||
if strings.Contains(dep, bad) {
|
||||
t.Errorf("unexpected dep: %q", dep)
|
||||
}
|
||||
}
|
||||
},
|
||||
}.Check(t)
|
||||
|
||||
Reference in New Issue
Block a user