Skip to content

fix(download-llvm): support tags without 'v' or 'version_' prefix#64

Merged
Arshia001 merged 1 commit into
mainfrom
fix-download-llvm
Jul 15, 2026
Merged

fix(download-llvm): support tags without 'v' or 'version_' prefix#64
Arshia001 merged 1 commit into
mainfrom
fix-download-llvm

Conversation

@marxin

@marxin marxin commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

The llvm-project releases are not prefixed with 'v' or 'version' and so we need to relax the check:

❯ wasixccenv download-llvm 21.1.204
error: invalid value '21.1.204' for '[TAG]': Invalid tag specification: `21.1.204`. Use 'latest', a tag starting with 'v', or 'version_XXX'.
``

https://github.com/wasix-org/llvm-project/releases

The llvm-project releases are not prefixed with 'v' or 'version' and
so we need to relax the check:
```
❯ wasixccenv download-llvm 21.1.204
error: invalid value '21.1.204' for '[TAG]': Invalid tag specification: `21.1.204`. Use 'latest', a tag starting with 'v', or 'version_XXX'.
``

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Relaxes TagSpec parsing for wasixccenv download-llvm so LLVM release tags that don’t use v/version_ prefixes (e.g. 21.1.204) can be accepted, and updates the validation error message accordingly.

Changes:

  • Allow tag strings starting with an ASCII digit to be parsed as TagSpec::Tag.
  • Update the invalid-tag error message to mention numeric versions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/download.rs
@Arshia001 Arshia001 merged commit 36361d7 into main Jul 15, 2026
20 of 21 checks passed
@Arshia001 Arshia001 deleted the fix-download-llvm branch July 15, 2026 11:40
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