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

Option to filter release #1655

Open
eclipseo opened this issue Aug 15, 2023 · 2 comments
Open

Option to filter release #1655

eclipseo opened this issue Aug 15, 2023 · 2 comments

Comments

@eclipseo
Copy link

So I have a strange request, for Go packages in Fedora, we package import path, for examples:

github.com/lestrrat-go/backoff/v1
github.com/lestrrat-go/backoff/v2
github.com/lestrrat-go/backoff/v3

For each import path we have a separate package:

golang-github-lestrrat-backoff-1
golang-github-lestrrat-backoff-2
golang-github-lestrrat-backoff-3

The issue is when we put this into Anitya, we get bug filed for version 3.x.x on the v1 package.

So I'd like a way for Anitya to only check for update with the major version 1, the major version 2 and so on.

So far, I have achieved that by putting:

Version filter: v2;v3:v4

to exclude these version in the v1 package.

But this is not future proof because, v5, v6 could appear in the future.

Thanks.

@eclipseo
Copy link
Author

I guess I need the opposite of filter version behaviour, i.e. a field like "limit version" would return versions starting/containing the string.

@Zlopez
Copy link
Contributor

Zlopez commented Aug 16, 2023

The best option for now is to create multiple projects in Anitya for different versions and map them accordingly. And just create a correct version filter for each of them.

We should probably solve this in the-new-hotness which is filling the bugs, but I'm not sure how to correctly map the version to package. I see two option either one package in one distro per one project or fill the bug to each package that is mapped to particular project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants