-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Upgrade versions in .tool-versions #4051
Comments
As a workaround it should be possible to add a custom rule using our new regex-based manager: https://docs.renovatebot.com/modules/manager/regex/ However I don't see any |
@rarkins interesting. Which repo are you referring to? asdf is the tool that makes use of |
Ok but in that case there’s no reference repositories for us to look at? |
Here's an example
Is that good or do you need an actual repo with that in it? |
If you want to try it, I suggest doing it in a public repo so that it's easiest to troubleshoot |
I realized there are two different parts to implement for asdf:
|
@rarkins Are there any plans to implement this, or any guidance on how it should be implemented? |
This would be a new manager and require a community contribution. |
checkout renovate/lib/manager/bundler/artifacts.ts Lines 40 to 51 in 40a59cc
|
This comment was marked as outdated.
This comment was marked as outdated.
The So my plan for implementing this feature:
Each line has format:
where version may be one of the following:
Depending on the depName, use different datasource. Maybe have a map of supported dep names and corresponding datasources. For example, for |
I like to name the new manager |
Work was started in #14092 but is not able to continue. Anyone who needs/wants this is welcome to pick up from where that PR left off. |
This comment was marked as off-topic.
This comment was marked as off-topic.
@bodinsamuel Please Don't flood issue with "me too" comments, this will cause a lot of noise for subscribers. Use the 👍 emoji on issue description for voting. |
There are a bunch of rules defined in https://github.com/kachick/renovate-config-asdf/, would it be something that could be merged in Renovate itself? |
This issue now is unfortunately a bit "wide", ideally we'd have an issue per tool so that each PR can close one issue. Unless someone is happy to submit a PR covering the remaining tools soon, we should close this as done and then create/link to separate feature requests per tool. |
My plan was always to add tools as I need them or for others to contribute for their needs - I just wanted to get one supported tool (and probably the most popular one) just so I could validate the flow without the additional complication of all the additional tools. |
Closing this issue as suggested #4051 (comment). |
What would you like Renovate to be able to do?
When upgrading node, ruby or the like, it should also change the version in
.tool-versions
, used by asdf.Describe the solution you'd like
See above.
Describe alternatives you've considered
Doing it manually.
Additional context
I'd imagine other version managers have similar files. Maybe renovate already supports them, but if not, it'd be great if it did as well.
The text was updated successfully, but these errors were encountered: