The Wayback Machine - https://web.archive.org/web/20201104075427/https://github.com/renovatebot/renovate/issues/6995
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

Renovate the .bazelversion file #6995

Open
rohansingh opened this issue Aug 16, 2020 · 4 comments
Open

Renovate the .bazelversion file #6995

rohansingh opened this issue Aug 16, 2020 · 4 comments

Comments

@rohansingh
Copy link
Contributor

@rohansingh rohansingh commented Aug 16, 2020

What would you like Renovate to be able to do?

I would like Renovate to renovate the .bazelversion file, which is a file that says what Bazel version the project is using. This file is consumed by Bazelisk to fetch and run the correct Bazel version.

Did you already have any implementation ideas?

  1. Check what the latest release of Bazel is.
  2. Write the latest release number to the .bazelversion file and open a PR.

Are there any workarounds or alternative ideas you've tried to avoid needing this feature?

Right now I just check every now and then to see if a new release is available, and update the .bazelversion file manually.

@viceice
Copy link
Collaborator

@viceice viceice commented Aug 17, 2020

You can use regex manager as workaround.

@viceice viceice added this to Needs Requirements in Renovate via automation Aug 17, 2020
@rarkins rarkins moved this from Needs Requirements to Ready in Renovate Aug 17, 2020
@rohansingh
Copy link
Contributor Author

@rohansingh rohansingh commented Aug 17, 2020

Here's the regex manager workaround I'm using now:

"regexManagers": [
  {
    "fileMatch": "^\\.bazelversion$",
    "matchStrings": ["^(?<currentValue>.*)$"],
    "depNameTemplate": "bazelbuild/bazel",
    "datasourceTemplate": "github-tags",
  },
],
@rarkins
Copy link
Collaborator

@rarkins rarkins commented Aug 17, 2020

@rohansingh great! But let's keep this issue open because it's good to support such managers out of the box.

@rohansingh
Copy link
Contributor Author

@rohansingh rohansingh commented Sep 14, 2020

Hmm, I guess the regex manager workaround I provided above doesn't actually work, and I'm not sure why. Bazel 3.5.0 has been out for a while but my .bazelversion isn't getting renovated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Renovate
  
Ready
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.