Repository navigation
fix(installation): upgrade mise-managed installs - #95
Merged
Merged
Conversation
red-dev installs Redcode through mise's GitHub backend (github:reddb-io/redcode). Installation.method() only knew npm, yarn, pnpm and bun globals, so those installs resolved to "unknown": the background auto-update bailed out silently for patch releases, and choosing "update" in the TUI prompt failed with "Unknown installation method". - Detect mise from the executable path (<data>/mise/installs/...) or from `mise ls --json github:reddb-io/redcode`. - Upgrade with `mise upgrade github:reddb-io/redcode` after clearing mise's cached version list, then confirm the target version is installed. - Surface the server's error text in the TUI "Update Failed" toast. Claude-Session: https://claude.ai/code/session_011zK7bzkqqTFRHCLD8xk4xY
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problema
O
red-devinstala o redcode pelo mise com backend GitHub (github:reddb-io/redcode), que descompacta o binário do release em<MISE_DATA_DIR>/installs/github-reddb-io-redcode/<versão>/. OInstallation.method()só reconhecia globais de npm/yarn/pnpm/bun (vianpm list -getc.), então essas instalações viravamunknown:cli/upgrade.tsretorna em silêncio quando o método éunknown. Nada acontece.global.upgraderesponde 400 "Unknown installation method", e o toast só dizia "Update failed".Correção
mise/installs) ou pormise ls --json github:reddb-io/redcode.mise upgrade github:reddb-io/redcode, precedido demise cache clear(lista de versões cacheada faz o upgrade concluir que não há nada a fazer), e confirmação de que a versão alvo ficou instalada. Se o pin no mise for exato (nãolatest), falha com instrução:mise use -g github:reddb-io/redcode@latest.Verificação
bun test test/installation/installation.test.ts: 10 pass (4 novos: detecção viamise ls,unknownsem o tool, upgrade com confirmação, falha quando a versão não muda)Nota: o
red-devpinagithub:reddb-io/redcode@latest(useRuntimes), entãomise upgradesem--bumpjá move para a versão nova.https://claude.ai/code/session_011zK7bzkqqTFRHCLD8xk4xY
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.