Skip to content

Conversation

@majiayu000
Copy link

Summary

  • Improves error message when users specify partial versions (e.g., "18" instead of "18.0.0")
  • For partial versions, the error now explains the requirement and suggests the complete format
  • For other invalid versions, provides a clearer explanation of the expected format

Test plan

  • Added unit tests for partial major version ("18")
  • Added unit tests for partial minor version ("18.0")
  • Added unit tests for invalid version strings
  • All existing tests pass

Fixes #1433

When users specify partial versions like "18" instead of "18.0.0",
Volta now provides a more helpful error message that:
- Explains that Volta requires full semantic versions (major.minor.patch)
- Indicates that partial versions are not supported
- Suggests the complete version format (e.g., "18.0.0")

For other invalid version strings, the error now clearly states the
required format.

Fixes volta-cli#1433

Signed-off-by: majiayu000 <1835304752@qq.com>
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.

Partial versions cause hard-to-read errors

1 participant