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

mangling versions #378

Open
umlaeute opened this issue Aug 9, 2023 · 3 comments
Open

mangling versions #378

umlaeute opened this issue Aug 9, 2023 · 3 comments

Comments

@umlaeute
Copy link

umlaeute commented Aug 9, 2023

upstream uses a mix of dots and dashes in their versions (otherwise following semver): ${major}.${minor}-${bugfix}.
though sometimes tags also use a more traditional ${major}.${minor}.${bugfix}.

Using a simple tag-pattern: "^([\\d.-]+)$", results in errors like:

: Can't compare 0.10.0 and 0.10-1: '<' not supported between instances of 'int' and 'str'

since only a single capture group in the regex is allowed: is there a way to mangle the version string in the regex (so i could replace all dashes with periods?

@wjt
Copy link
Contributor

wjt commented Aug 9, 2023

There is not.

Assuming this is a GitHub repo you're pulling from – or some other forge that has a REST API – you may have more luck using the JSON checker. Can you share the module in question?

@umlaeute
Copy link
Author

umlaeute commented Aug 9, 2023

upstream is https://github.com/pure-data/pure-data/

@wjt
Copy link
Contributor

wjt commented Aug 9, 2023

Can you share the Flatpak builder manifest you're working on?

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

No branches or pull requests

2 participants