Skip to content

fix(env): accept lts/* and lts/<codename> in env exec --node and env pin - #3437

Open
jong-kyung wants to merge 3 commits into
voidzero-dev:mainfrom
jong-kyung:fix/env-lts-alias
Open

jong-kyung wants to merge 3 commits into
voidzero-dev:mainfrom
jong-kyung:fix/env-lts-alias

Conversation

@jong-kyung

Copy link
Copy Markdown
Collaborator

Summary

vp env exec --node and vp env pin rejected lts/*, lts/<codename>, and lts/-n, although vp env use accepts them. Each command had its own alias handling, which only knew lts and latest.

Both commands now resolve versions through config::resolve_version_alias, the helper that vp env use already uses.

Changes

  • env exec --node calls config::resolve_version_alias and no longer has its own resolver.
  • env pin resolves aliases and ranges through the same helper. It still validates that an exact version exists before writing it.

Behavior notes

  • vp env pin lts/* writes the resolved exact version, which matches the existing behavior of vp env pin lts.
  • An invalid version passed to either command now produces the shared Invalid Node.js version message instead of the raw semver error.

Both commands resolved versions with their own alias handling, which only knew lts and latest. They now share config::resolve_version_alias with vp env use. env pin still validates that an exact version exists.
@jong-kyung jong-kyung self-assigned this Nov 12, 2026
@jong-kyung

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T07:06:19.024375Z 1b4d8a0 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 1b4d8a0766

ℹ️ 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".

@jong-kyung
jong-kyung marked this pull request as ready for review November 12, 2026 06:59

@liangmiQwQ liangmiQwQ left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants