Support updating buf.lock #24741
Replies: 8 comments 3 replies
-
Hi there, You're asking us to support a new package manager. We need to know some basic information about this package manager first. Please copy/paste the new package manager questionnaire, and fill it out in full. Once the questionnaire is filled out we'll decide if we want to support this new manager. Good luck, The Renovate team |
Beta Was this translation helpful? Give feedback.
-
Seems to be a littlebit complicated, as there is no official api yet and the registry is only available via protocol buffers. |
Beta Was this translation helpful? Give feedback.
-
@viceice As buf.build now uses their own built curl 'https://api.buf.build/buf.alpha.registry.v1alpha1.RepositoryTagService/ListRepositoryTags' \
-H 'content-type: application/json' \
--data-raw '{"repositoryId":"c84e502e-8a35-4bdc-aae4-a5dbdf9a685c","pageSize":1,"reverse":true}'
{
"repositoryTags": [
{
"id": "55fa2a4f-96ad-4c4e-9d18-3fedb39deba6",
"createTime": "2022-11-02T15:03:22.295046Z",
"name": "77bdd3dd26ea10c1b4f1c190e776a2d3fe4b3e8d",
"commitName": "783e4b5374fa488ab068d08af9658438",
"author": "bufbot"
}
],
"nextPageToken": "55fa2a4f-96ad-4c4e-9d18-3fedb39deba6"
} And the documentation for this endpoint can be found here. |
Beta Was this translation helpful? Give feedback.
-
@trietsch Indeed the backend is based on connect-go and supports the Connect protocol, which means the API will return plain JSON and can be used with any off-the-shelf tool. Not sure what the status of this issue is, but I can probably help out here as this has come up quite a bit for us. |
Beta Was this translation helpful? Give feedback.
-
Hi @mfridman that would be great. The order we recommend to approach things is "datasource" first, then "versioning" (if necessary), then "manager". Here's docs for datasources, and within the same directory there are plenty of examples: https://github.com/renovatebot/renovate/blob/main/lib/modules/datasource/readme.md |
Beta Was this translation helpful? Give feedback.
-
Hi @mfridman, are you working on this? |
Beta Was this translation helpful? Give feedback.
-
Is anyone working on this? If not, I might give it a try. |
Beta Was this translation helpful? Give feedback.
-
What would you like Renovate to be able to do?
I would like to be able to manage the buf.lock .
buf is a new tool and ecosystem registry to manage protobuf dependencies and is really taking off.
versions apparently get deleted from buf build after a certain time, so updating is important.
If you have any ideas on how this should be implemented, please tell us here.
https://docs.buf.build/configuration/v1/buf-lock (and surrounding documentation) describes the process that needs to be done from a users perspective.
It boils down to
buf.yaml
deps
propertybuf mod update
to update all orbuf mod --only <module>
to update only oneoptional improvement on top that can improve the user experience, but should really be only options
buf generate
which re-generate code from all*.proto
files and checks code generationbuf build
which uses all*.proto
files, including modules updated, and bundles that into a buf imageIs this a feature you are interested in implementing yourself?
No
Beta Was this translation helpful? Give feedback.
All reactions