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

Support for multiple prefixes #655

Closed
Zlopez opened this issue Nov 8, 2018 · 2 comments · Fixed by #766
Closed

Support for multiple prefixes #655

Zlopez opened this issue Nov 8, 2018 · 2 comments · Fixed by #766
Assignees
Labels
Medium Priority This ticket has a medium priority type.feature New feature
Milestone

Comments

@Zlopez
Copy link
Contributor

Zlopez commented Nov 8, 2018

Currently the project in Anitya supports only one prefix, which should cause problems with version comparison, if the prefix is changed in project lifetime.
We should support multiple prefixes to prevent this issue.

@yarons
Copy link
Contributor

yarons commented Jan 31, 2019

I thought about maybe having a replacement rule.

If the version on GitHub is 1_2_3 I can't reliably report the version since there are no dots involved.

Same goes for other sources, even with Regex there's a problem because even if I capture the numbers then it will work if I capture 3 digits ([\d]+)([\d]+)([\d]+) but if there are 2: 1_3 it will not work.

@Zlopez
Copy link
Contributor Author

Zlopez commented Jan 31, 2019

This issue is about supporting multiple prefixes, which should help in the project that has more than one prefix.
The replacement rule is something I don't have clear idea how to implement. If it will be regex, than you can just use custom backend.

@Zlopez Zlopez added this to the 0.16.0 milestone Feb 21, 2019
@Zlopez Zlopez self-assigned this Apr 4, 2019
@Zlopez Zlopez modified the milestones: 0.16.0, 0.17.0 Jun 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Medium Priority This ticket has a medium priority type.feature New feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants