gentoo/dev-util/github-cli/files/github-cli-2.92.0-disable-telemetry.patch
Arthur Zamarin f6d2d15071
dev-util/github-cli: add 2.92.0
Closes: https://bugs.gentoo.org/973099
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
2026-04-28 19:47:12 +03:00

14 lines
664 B
Diff

https://bugs.gentoo.org/973099
--- a/internal/telemetry/telemetry.go
+++ b/internal/telemetry/telemetry.go
@@ -104,6 +104,8 @@ const (
// The GH_TELEMETRY environment variable takes precedence, followed by DO_NOT_TRACK, then the configuration value.
// Recognized values for GH_TELEMETRY and config are "enabled", "disabled", "log", or any falsey value (e.g. "0", "false", "no") to disable telemetry.
func ParseTelemetryState(configValue string) TelemetryState {
+ _ = configValue
+ return Disabled
// GH_TELEMETRY env var takes highest precedence
if envVal, ok := lookupEnvFunc("GH_TELEMETRY"); ok {
envVal = strings.TrimSpace(strings.ToLower(envVal))