Repository navigation
update: leave a Scoop install to Scoop, like Homebrew - #411
Conversation
ipsupport-code is in the ipsupport-llc Scoop bucket now. A Scoop install lives in <root>\apps\ipsupport-code\<version|current>\; replacing that exe in place leaves Scoop believing in a version that isn't there. update, /update, Apply and the startup notice now ask selfupdate.PackageManager() (Homebrew or Scoop) and point at its command instead: `scoop update ipsupport-code`, or `scoop update -g ipsupport-code` for a global install ($SCOOP_GLOBAL, by default C:\ProgramData\scoop), which plain `scoop update` doesn't find. README: Scoop install section. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
If your organization's extra usage balance is empty, an organization admin can add extra usage credits at claude.ai/admin-settings/usage. If its monthly spend limit was reached, an admin can raise it on the same page. If neither applies, contact Anthropic support.
Once extra usage is available, someone with write access to this repository can comment @claude review on this pull request to trigger a review.
From review: a global root set with `scoop config global_path` (no $SCOOP_GLOBAL) got the plain `scoop update` hint, which doesn't find a global install; and a user root under ProgramData\scoop got `-g`. The global root is now resolved like Scoop's lib/core.ps1: $SCOOP_GLOBAL, then global_path in $XDG_CONFIG_HOME or %USERPROFILE%\.config\scoop\config.json, then %ProgramData%\scoop; `-g` only for installs under it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Reviews (codex, muse, devin): the shared finding is applied. The global root is now resolved as Scoop's lib/core.ps1 does: |
ipsupport-code is now in the Scoop bucket
ipsupport-llc/scoop-bucket, and the bucket follows every stable release (#410). Before this PR,updatewould replace the exe inside Scoop's app dir, leaving Scoop's recorded version wrong.selfupdate.PackageManager() (by, update string)replacesBrewUpgrade(): Homebrew as before, then Scoop. The Scoop check matches<root>\apps\ipsupport-code\<version|current>\with any root and any case. Scoop's shims (ipsupport-code,ipco) start that exe, soos.Executablepoints there.scoop install -g, under$SCOOP_GLOBAL, by defaultC:\ProgramData\scoop) getsscoop update -g ipsupport-code. Without-g,scoop updateonly looks at user installs and answers "isn't installed" (Confirm-InstallationStatusin Scoop'slib/core.ps1).update,/update,Applyand the startup notice use it. The notice also pins the channel to stable for Scoop installs, since the manifest only follows stable releases.Tests:
TestScoopInstallIsUpdatedByScoop: user, global, custom global root, version dir vscurrent, case, plus non-matches (install.ps1 dir, shims dir, other app, acurrentdir that isn't underapps).TestPackageManagerNamesTheInstaller.TestApplyRefusesAManagedInstall: Apply refuses before touching the network.Sabotage check: 8 mutations (dropping the Scoop branch, the
appscheck, lowercasing, global-root normalisation, the ProgramData default,-g, the brew name, the Apply guard), all caught.go test -race ./...passes andGOOS=windowsbuilds. Not run on real Windows with Scoop.🤖 Generated with Claude Code