mirror of https://github.com/tailscale/tailscale/
feature/featuretags: make CLI connection error diagnostics modular
Updates #12614 Change-Id: I09b8944166ee00910b402bcd5725cd7969e2c82c Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>pull/17316/head
parent
11b770fbc9
commit
7bcab4ab28
@ -1,15 +0,0 @@
|
|||||||
// Copyright (c) Tailscale Inc & AUTHORS
|
|
||||||
// SPDX-License-Identifier: BSD-3-Clause
|
|
||||||
|
|
||||||
//go:build !linux && !windows && !darwin
|
|
||||||
|
|
||||||
package cli
|
|
||||||
|
|
||||||
import "fmt"
|
|
||||||
|
|
||||||
// The github.com/mitchellh/go-ps package doesn't work on all platforms,
|
|
||||||
// so just don't diagnose connect failures.
|
|
||||||
|
|
||||||
func fixTailscaledConnectError(origErr error) error {
|
|
||||||
return fmt.Errorf("failed to connect to local tailscaled process (is it running?); got: %w", origErr)
|
|
||||||
}
|
|
||||||
@ -0,0 +1,13 @@
|
|||||||
|
// Copyright (c) Tailscale Inc & AUTHORS
|
||||||
|
// SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
|
// Code generated by gen.go; DO NOT EDIT.
|
||||||
|
|
||||||
|
//go:build ts_omit_cliconndiag
|
||||||
|
|
||||||
|
package buildfeatures
|
||||||
|
|
||||||
|
// HasCLIConnDiag is whether the binary was built with support for modular feature "CLI connection error diagnostics".
|
||||||
|
// Specifically, it's whether the binary was NOT built with the "ts_omit_cliconndiag" build tag.
|
||||||
|
// It's a const so it can be used for dead code elimination.
|
||||||
|
const HasCLIConnDiag = false
|
||||||
@ -0,0 +1,13 @@
|
|||||||
|
// Copyright (c) Tailscale Inc & AUTHORS
|
||||||
|
// SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
|
// Code generated by gen.go; DO NOT EDIT.
|
||||||
|
|
||||||
|
//go:build !ts_omit_cliconndiag
|
||||||
|
|
||||||
|
package buildfeatures
|
||||||
|
|
||||||
|
// HasCLIConnDiag is whether the binary was built with support for modular feature "CLI connection error diagnostics".
|
||||||
|
// Specifically, it's whether the binary was NOT built with the "ts_omit_cliconndiag" build tag.
|
||||||
|
// It's a const so it can be used for dead code elimination.
|
||||||
|
const HasCLIConnDiag = true
|
||||||
Loading…
Reference in New Issue