Renovate: Renovate the .bazelversion file

Created on 16 Aug 2020  路  4Comments  路  Source: renovatebot/renovate

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.

good first issue bazel new package manager priority-3-normal feature

Most helpful comment

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

All 4 comments

You can use regex manager as workaround.

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

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

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

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.

Was this page helpful?
0 / 5 - 0 ratings