cmd/tailscale,feature/featuretags: make webbrowser and colorable deps omittable

Add new "webbrowser" and "colorable" feature tags so that the
github.com/toqueteos/webbrowser and mattn/go-colorable packages
can be excluded from minbox builds.

Updates #12614

Change-Id: Iabd38b242f5a56aa10ef2050113785283f4e1fe8
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2026-02-08 04:46:09 +00:00
committed by Brad Fitzpatrick
parent 5eaaf9786b
commit a3215f1f9d
12 changed files with 119 additions and 23 deletions
+2
View File
@@ -295,6 +295,8 @@ func TestMinTailscaledWithCLI(t *testing.T) {
"archive/tar": "unexpected archive/tar dep",
"tailscale.com/feature/conn25": "unexpected conn25 dep",
"regexp": "unexpected regexp dep; bloats binary",
"github.com/toqueteos/webbrowser": "unexpected webbrowser dep with ts_omit_webbrowser",
"github.com/mattn/go-colorable": "unexpected go-colorable dep with ts_omit_colorable",
},
}.Check(t)
}