Repository navigation
fix(env): resolve alias defaults in vp env list - #3582
jong-kyung wants to merge 1 commit into
Conversation
vp env list compared stored defaults such as lts or pnpm@latest with installed versions, so aliased defaults were never marked. List and list-remote now share one resolver, and a default that cannot be resolved only loses its marker.
5a7dfa1 to
931c7e2
Compare
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 931c7e2602
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| default_package_manager_versions.insert(kind.to_string(), selector); | ||
| } | ||
| } | ||
| let defaults = resolve_default_versions(&config, scope, &cwd, &NodeProvider::new()).await?; |
There was a problem hiding this comment.
Bound alias lookups when listing installed versions
When a project pins pnpm@10.18.0 but the global default is pnpm@latest, a missing or expired tag cache makes this new await contact the registry even though resolving the current version needs no network. The lookup uses three retries (crates/vp_pm_cli/src/request.rs:38,261-265) with 30-second connect and two-minute request timeouts (crates/vp_shared/src/http.rs:62-73), so a black-holed registry can now block vp env list pnpm for minutes before any local inventory is printed. Ignoring the eventual error does not avoid this regression for the command documented as “Show every locally installed component” (docs/guide/env.md:253). Use cached-only resolution or a short best-effort deadline for local-list markers, retaining full resolution for list-remote.
AGENTS.md reference: AGENTS.md:L60-L60
Useful? React with 👍 / 👎.
vp env listcompared the stored default, such asltsorpnpm@latest, directly with installed versions, so an alias default was never marked.vp env list-remoteresolved the alias first, so the two commands disagreed about the same default.Both commands now share one resolver. A default that cannot be resolved only loses its marker, so
liststill lists installed versions offline.