Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added gitlab support, simplified version sorting with ls-remote #58

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Commits on Jan 15, 2023

  1. feat: added gitlab support, simplified version sorting with ls-remote

    This allows for easier access to both GitHub and GitLab releases,
    without having to modify anything new.
    
    It also simplifies sorting by using git ls-remote's built-in --sort
    functionality. Since not all projects strictly follow semver, attempts
    were made to normalize it, such as if there is no `-` between a patch
    version and `rc`, `prerelease`, etc.
    
    NOTE: this does require git >= 2.18.0, so that is checked for.
    
    It also removes the -C - parameter from curl, which was attempting to
    resume downloads, querying the server for the byte range to do so. This
    is not universally supported, and if the server doesn't support it, the
    download will fail.
    
    Finally, where possible, it uses shell built-ins like parameter
    substitution over calling external commands. If this isn't possible, it
    minimizes the number of spawned subshells by combining commands rather
    than piping. This speeds up the asdf ecosystem as a whole, by minimizing syscalls.
    stephanGarland committed Jan 15, 2023
    Configuration menu
    Copy the full SHA
    b36b7a6 View commit details
    Browse the repository at this point in the history
  2. fix: adds a regex requiring that the tag match some vague form of sem…

    …ver, in that it must start with a digit
    stephanGarland committed Jan 15, 2023
    Configuration menu
    Copy the full SHA
    2b483fd View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2023

  1. Configuration menu
    Copy the full SHA
    3d909be View commit details
    Browse the repository at this point in the history