mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-27 20:08:40 +00:00
cmd/tailscale, ipn/ipnlocal: add ts_omit_webclient
Fixes #17063 Updates #12614 Change-Id: I0a189f6a4d1c4558351e3195839867725774fa96 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
ffc82ad820
commit
3e4b0c1516
@@ -4,6 +4,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"tailscale.com/tstest/deptest"
|
||||
@@ -41,3 +42,22 @@ func TestOmitSyspolicy(t *testing.T) {
|
||||
},
|
||||
}.Check(t)
|
||||
}
|
||||
|
||||
// Test that we can build a binary without reflect.MethodByName.
|
||||
// See https://github.com/tailscale/tailscale/issues/17063
|
||||
func TestOmitReflectThings(t *testing.T) {
|
||||
deptest.DepChecker{
|
||||
GOOS: "linux",
|
||||
GOARCH: "amd64",
|
||||
Tags: "ts_include_cli,ts_omit_systray,ts_omit_debugeventbus,ts_omit_webclient",
|
||||
BadDeps: map[string]string{
|
||||
"text/template": "unexpected text/template usage",
|
||||
"html/template": "unexpected text/template usage",
|
||||
},
|
||||
OnDep: func(dep string) {
|
||||
if strings.Contains(dep, "systray") {
|
||||
t.Errorf("unexpected systray dep %q", dep)
|
||||
}
|
||||
},
|
||||
}.Check(t)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user