Skip to content

fix(preset): disable tilt analytics during version check#158

Merged
fentas merged 1 commit into
mainfrom
fix/tilt-analytics-env
May 8, 2026
Merged

fix(preset): disable tilt analytics during version check#158
fentas merged 1 commit into
mainfrom
fix/tilt-analytics-env

Conversation

@fentas
Copy link
Copy Markdown
Owner

@fentas fentas commented May 8, 2026

Summary

`tilt version` fails in b's clean exec environment because tilt's analytics init calls `getent` which isn't available. This left `VersionLocalF` unable to report the installed version.

Fix

Set `TILT_DISABLE_ANALYTICS=1` inside `VersionLocalF`, same pattern as:

  • k9s: `K9S_LOGS_DIR=/tmp`
  • argocd: `HOME=/tmp`
  • packer: `HOME=/tmp`

Test plan

🤖 Generated with Claude Code

tilt's analytics init calls getent which isn't available in the clean
env that b uses for binary execution. This made 'tilt version' fail
with exit code 1, leaving VersionLocalF unable to report the installed
version.

Set TILT_DISABLE_ANALYTICS=1 in the version check (same pattern as
k9s setting K9S_LOGS_DIR and argocd/packer setting HOME).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@fentas fentas requested a review from Copilot May 8, 2026 10:38
@fentas fentas merged commit f30b803 into main May 8, 2026
12 checks passed
@fentas fentas deleted the fix/tilt-analytics-env branch May 8, 2026 10:42
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Disables Tilt analytics during the local version probe so tilt version succeeds in b’s clean execution environment (avoiding update flows treating Tilt’s version as “unknown” and repeatedly re-downloading it).

Changes:

  • Set TILT_DISABLE_ANALYTICS=1 inside Tilt’s VersionLocalF before running tilt version.

Comment thread pkg/binaries/tilt/tilt.go
Comment on lines +39 to 43
if b.Envs == nil {
b.Envs = map[string]string{}
}
b.Envs["TILT_DISABLE_ANALYTICS"] = "1"
s, err := b.Exec("version")
fentas pushed a commit that referenced this pull request May 8, 2026
🤖 I have created a release *beep* *boop*
---


## [4.17.1](v4.17.0...v4.17.1)
(2026-05-08)


### Bug Fixes

* **binary:** revert EnsureBinary unknown-version guard
([#152](#152) regression)
([#156](#156))
([37428f4](37428f4))
* **preset:** disable tilt analytics during version check
([#158](#158))
([f30b803](f30b803))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants