Commit 6e9d68b
fix(build): Check version override env var at runtime for integration tests
Previously, the version override only worked when cfg(test) was enabled,
which didn't include integration tests that spawn the CLI as a subprocess.
This caused CI test failures because the env var was never checked in the
actual binary.
This change removes the cfg(test) conditional and renames the env var to
SENTRY_CLI_INTEGRATION_TEST_VERSION_OVERRIDE to clarify it's for testing
purposes only.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent eb56253 commit 6e9d68b
2 files changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| |||
0 commit comments