Support bazel go_repository urls field #24786
Replies: 6 comments
-
Looks like we need to compute the sha256 of the zip file? |
Beta Was this translation helpful? Give feedback.
-
I started working on moving bazel to autoUpdate. Any sha256 we need to calculate can then be done as part of artifacts so that we're not calculating them every run. |
Beta Was this translation helpful? Give feedback.
-
Can we use digest update for the hash here? So we even don't need artifacts |
Beta Was this translation helpful? Give feedback.
-
No, we need artifacts to do Bazel properly anyway. And we don't want to be calculating the sha256 every time. |
Beta Was this translation helpful? Give feedback.
-
Blocked by #9667 |
Beta Was this translation helpful? Give feedback.
-
Hi there, Get your issue fixed faster by creating a minimal reproduction. This means a repository dedicated to reproducing this issue with the minimal dependencies and config possible. Before we start working on your issue we need to know exactly what's causing the current behavior. A minimal reproduction helps us with this. To get started, please read our guide on creating a minimal reproduction. We may close the issue if you, or someone else, haven't created a minimal reproduction within two weeks. If you need more time, or are stuck, please ask for help or more time in a comment. Good luck, The Renovate team |
Beta Was this translation helpful? Give feedback.
-
What would you like Renovate to be able to do?
Use renovate to update
go_repository
rules that use theurls
field.Describe the solution you'd like
Specify
urls
likehttps://codeload.github.com/pkg/errors/zip/v0.9.1
,https://codeload.github.com/google/go-containerregistry/zip/221517453cf931400e6607315045445644122692
, and similar and have renovate update them based on the extracted tag or commit.Describe alternatives you've considered
Using
tag
orcommit
which are supported interferes with bazel's caching mechanism, usingsum
isn't implemented yet (though it has been requested in #4402) and causes different repositories using gazelle to interact with each other when you wouldn't want them to.Additional context
See bazelbuild/rules_docker#1452 for an example of why one would prefer the
urls
field overtag
,commit
orsum
.Beta Was this translation helpful? Give feedback.
All reactions