Dashboard › cli › Distillation
099ea140-fad0-40c6-992b-b5b7c7b1efc3["lore_tm_v1_gwiLwi5bjtOkMbjXgoY1qkv8Y_LRRmKhmXwz7BrYi2E"]
Date: Sep 10, 2026
"curl" installation method for GitHub lookup, regardless of the current installation method, because nightly builds are GitHub-only./; stripTrailingSep(p: string) returns p.slice(0, -1) only when p.length > 1 && p.endsWith(sep), allowing ~/.local/bin/ to compare equal to ~/.local/bin."sentry cli upgrade nightly" means "Switch to nightly channel and update".pinnedTarget from non-channel versionArg values using versionArg.replace(VERSION_PREFIX_REGEX, ""); pinned nightly versions use resolvePinnedVersion("curl", pinnedTarget), while other pinned versions use the selected installation method.resolveLatestUpgradeVersion(channel) and carry its branded source; target selection order is pinnedTarget, then latestResolution?.version, then fetchLatestVersion(method, channel).resolvedTarget; target results return { kind: "target", target: resolvedTarget, source }, and check results also preserve source.isNightlyVersion(target) && method !== "curl" rather than merely channel === "nightly" && method !== "curl". migrateToStandaloneForNightly() now receives source and channel; executeStandardUpgrade() now receives source.UpgradeSource with readonly fields githubRepo, ghcrRepo, and tagPrefix. Ordered UPGRADE_SOURCES are: 1. { githubRepo: "getsentry/toolkit", ghcrRepo: "getsentry/toolkit", tagPrefix: "cli@" }; 2. { githubRepo: "getsentry/cli", ghcrRepo: "getsentry/cli", tagPrefix: "" }. Resolution falls through only on HTTP 404, and PRIMARY_UPGRADE_SOURCE is UPGRADE_SOURCES[0].