-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
proto install for github tool tagged not using semantic version (toml plugin) #624
Comments
I unfortunately think this is one of those situations where a WASM plugin is required, since you would need to format/parse versions yourself. For example, go requires this: https://github.com/moonrepo/tools/blob/master/tools/go/src/version.rs proto requires a fully-qualified version (needs the patch), but if we fill it for you and turn I'll see if there's something I could do on my end. |
Thank you,
Looking at the proto-tool code, For this repo itself, the git-tag matches the actual part of the github download url, or alternatively, have [install.version] to allow overriding the {version} template variable just like [install.arch] and [install.platform].
Let me know if you're open for PR on the above in the moonrepo/tools repo. |
I think maybe supporting tokens like |
the only issue with {versionMajor} {versionMinor} {versionPatch} would be if upstream for some reason have this weird convention of 0.8.0 => 0.8 although for this particular upstream, they had never tag a non-zero patch version so far (except the very first one), |
What version?
0.41.3
Which command?
proto install kondo
What happened?
I'm using the following toml plugin definition (explicit versions instead of resolve.git-url due to the project not creating a tag for releases)
Getting
❯ proto install kondo Error: plugin::call_func::failed × Unknown version format `0.8`. Must be a semantic or calendar based format. at line 1 column 107
Although the crate in https://github.com/tbillington/kondo actually follows semantic version (they tagged the crate as 0.8.0), but the github releases are not tagged as such.
Would this be a scenario that proto toml plugin should be able to handle,
or should we actually ask upstream to tag their releases with semantic version instead?
Trace logs?
No response
Operating system?
Linux
Architecture?
x64
The text was updated successfully, but these errors were encountered: