You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b56a3df
Browse filesBrowse the repository at this point in the historyBrowse files
Teach both installers the telemetry opt-out's new name
The binary's opt-out was renamed from `DISABLE_TELEMETRY` to
`MAPBOX_CLI_NO_TELEMETRY` and the break was documented honestly. Both
installers were left on the old name, so after that release neither variable
silenced both halves: the documented one stopped the CLI's markers but not the
installer's, and the old one did the reverse.
`docs/distribution.md` in the private repo already claimed the fix —
"`MAPBOX_CLI_NO_TELEMETRY` switches all of that off … Both installers carry
their own copy of this logic, and both test suites pin it in both directions."
The first half was false and the second pinned the wrong name. This makes that
documentation true rather than changing it.
**The old name keeps working here, and only here.** The binary's break was
announced in a changelog someone upgrading can read. An installer is fetched
and executed in one line — `curl … | sh`, `irm … | iex` — so its reader has
no release notes in front of them, and breaking an opt-out is the one change
that must not happen quietly. Asymmetric on purpose, and the comment in each
file says so.
When both are set the new name wins, including when it declines: an explicit
`MAPBOX_CLI_NO_TELEMETRY=0` beats a stale `DISABLE_TELEMETRY=1` left in an
image from before the rename. Without that the old variable could never be
retired.
Verified rather than reasoned about: each script's decision block was run over
the cases directly — nine in `sh`, eight in `pwsh` 7.6.6 — covering both
names, both precedence directions, the six false spellings, an unknown
spelling, whitespace, and a set-but-empty new name as a deliberate clear. Both
real harnesses then got cases asserting the new name opts out, wins when the
two disagree, and wins in the opt-out direction too. `test-install.sh` reports
all cases passed; `test-install.ps1` reports all good.
Ported from mapbox/mapbox-cli-private#141, which cannot merge there now that
`oss/` is a submodule (mapbox/mapbox-cli-private#132). That PR also edited
`docs/distribution.md`, which lives in the private repo and stays there.
0 commit comments