Skip to content

Support installation of major version number: vfox install deno@2#3

Merged
aooohan merged 4 commits into
version-fox:mainfrom
tianyiw2013:main
Sep 29, 2025
Merged

Support installation of major version number: vfox install deno@2#3
aooohan merged 4 commits into
version-fox:mainfrom
tianyiw2013:main

Conversation

@tianyiw2013
Copy link
Copy Markdown
Contributor

> vfox install deno@2.3
Preinstalling deno@2.3.7...
> vfox install deno@2
Preinstalling deno@2.3.7...

@aooohan aooohan requested a review from Copilot September 29, 2025 12:30
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for installing Deno using major version numbers (e.g., vfox install deno@2) by implementing version prefix matching to automatically resolve to the latest available version within that major version.

  • Refactored the PreInstall function to support partial version matching with major version numbers
  • Added a new result helper function to reduce code duplication
  • Updated the README to use the GitHub URL instead of the documentation URL

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
hooks/pre_install.lua Implements major version matching logic and extracts common result building into a helper function
README.md Updates vfox project URL to point to GitHub repository

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread hooks/pre_install.lua Outdated
Comment thread hooks/pre_install.lua
aooohan and others added 2 commits September 29, 2025 20:35
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@aooohan aooohan merged commit f9a1f5f into version-fox:main Sep 29, 2025
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.

3 participants