Dashboard › cli › Distillation
b8040be6-ea85-4fed-856e-5217a6516314["lore_tm_v1_4uxRXZwl2gVl5JNlBzauI0GgZL9ECj4Yeum6mUhEbe0"]
validateMethod() in packages/cli/src/commands/cli/upgrade.ts throws UpgradeError("unsupported_operation", "Offline upgrade is only supported for curl-installed binaries.") when offline is used with any method other than "curl"."curl" (GitHub) lookup regardless of the current installation method.stripTrailingSep() in packages/cli/src/lib/binary.ts strips a trailing path separator but never strips it from a bare root such as /; this makes PATH entries such as ~/.local/bin/ compare equal to ~/.local/bin.sentry cli upgrade nightly # Switch to nightly channel and update.packages/cli/src/commands/cli/upgrade.ts import isNightlyVersion and type UpgradeSource from ../../lib/binary.js, and import resolveExistingUpgradeVersion and resolveLatestUpgradeVersion from ../../lib/upgrade.js.{ kind: "target", target: resolvedTarget, source }, preserving the resolved UpgradeSource alongside the target version.resolveUpdatedCliPath(execPath, entryPath, pathEnv) resolves the updated executable in this order: whichSync("sentry", { PATH: pathEnv }), then entryPath, then execPath.sentry cli upgrade; validateMethod() throws UpgradeError("unsupported_operation", "Homebrew does not support installing a specific version. Run 'brew upgrade getsentry/tools/sentry' to upgrade to the latest formula version.") when method === "brew", a version argument is present, and channel === "stable".