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

Uniform tag and version indicated in releases #1924

Closed
EmyLIEUTAUD opened this issue Jul 10, 2023 · 2 comments
Closed

Uniform tag and version indicated in releases #1924

EmyLIEUTAUD opened this issue Jul 10, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@EmyLIEUTAUD
Copy link

What would you like to be added:
When we import syft into our projects via the .tar.gz package for example, the version is indicated in 2 places in a different format (with and without the v):
https://github.com/anchore/syft/releases/download/v0.60.3/syft_0.60.3_linux_amd64.tar.gz
It would be useful to standardize the tags with the versions indicated in the package names: put the "v" nowhere or everywhere.

Why is this needed:
If Renovate can't automatically identify a dependency, it needs to be told so via a regex. In this regex, we need to specify where the version is located. This poses a problem when 2 versions in the same package have a different format. It therefore fails to update the dependency correctly.
Thanks to this standardization, it would be able to correctly modify the version in both places.

@EmyLIEUTAUD EmyLIEUTAUD added the enhancement New feature or request label Jul 10, 2023
@tgerla
Copy link
Contributor

tgerla commented Jul 13, 2023

Hi @EmyLIEUTAUD, thanks for filing the issue. We aren't familiar with Renovate over here. We would prefer not to change our url scheme at this point, but we'd be happy to help you find a suitable workaround. Perhaps just include the "v" character in your template, something like this:

https://github.com/whatever/v${VERSION}/syft_${VERSION}_linux_amd64.tar.gz

...and then set VERSION=0.60.3

Please feel free to share some more details and we might be able to help with a good workaround.

@EmyLIEUTAUD
Copy link
Author

Hi !

I already tried with the "v" exclude from the version but when Renovate find the new version, it add a "v" in front of the 2 versions, which will not work.

With an environment variable to have only one place with the version, it's normally possible but I need a GitHub token to be able to find the new version directly on GitHub without passing by Artifactory, which is not what I want.

Maybe we will find another solution, or wait for an uniformization of the version and tag for the release, or an update on Renovate side to be able to identify 2 different versions into a same dependency.

Thanks anyway !

@tgerla tgerla closed this as not planned Won't fix, can't repro, duplicate, stale Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

No branches or pull requests

2 participants