Commit ae992b9
committed
fix(upgrade): check GHCR for nightly version existence instead of GitHub Releases
Fixes CLI-B5
When a user pins a specific nightly version (e.g. `sentry cli upgrade
0.14.0-dev.1772661724`), the `versionExists()` function was checking
GitHub Releases (which only has stable releases). Nightly builds are
published to GHCR with tags like `nightly-0.14.0-dev.1772661724`.
The fix routes nightly version checks to GHCR via `fetchManifest()`
instead of GitHub Releases, so pinned nightly upgrades no longer fail
with a false "Version X not found" error.1 parent 0da9cc9 commit ae992b9
1 file changed
+29
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
384 | 385 | | |
385 | 386 | | |
386 | 387 | | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
387 | 407 | | |
388 | 408 | | |
389 | | - | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
390 | 413 | | |
391 | 414 | | |
392 | 415 | | |
| |||
397 | 420 | | |
398 | 421 | | |
399 | 422 | | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
400 | 428 | | |
401 | 429 | | |
402 | 430 | | |
| |||
0 commit comments