diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /dev-util/github-cli/files/github-cli-2.92.0-disable-telemetry.patch | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'dev-util/github-cli/files/github-cli-2.92.0-disable-telemetry.patch')
| -rw-r--r-- | dev-util/github-cli/files/github-cli-2.92.0-disable-telemetry.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/dev-util/github-cli/files/github-cli-2.92.0-disable-telemetry.patch b/dev-util/github-cli/files/github-cli-2.92.0-disable-telemetry.patch new file mode 100644 index 000000000000..f9d1e08efd4f --- /dev/null +++ b/dev-util/github-cli/files/github-cli-2.92.0-disable-telemetry.patch @@ -0,0 +1,13 @@ +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)) |
