Update buf googleapis reference #320

Closed
opened 2025-12-29 01:26:52 +01:00 by adam · 0 comments
Owner

Originally created by @stefanvanburen on GitHub (Sep 6, 2022).

Issue description

We recently made a change to our managed buf.build/googleapis/googleapis repository before certifying BSR as v1. You'll need to run buf mod update in proto/ to update your buf.lock.

googleapis contains over 3800 files, mostly relating to Google's core APIs. This causes numerous issues for most users, such as timeouts when installing packages with huge swaths of unused code to pull in just a few files. Not only is this a lot of code over the network and on disk, but it can cause issues in editors that try to parse all of that code!

However, there are only ~30 files used by 99.999% of developers, and these files are the most common dependency in the Protobuf ecosystem. For example:

  • google.type, which defines useful messages such as DateTime and Money.
  • google.rpc, for interacting with gRPC.
  • google.api, for defining APIs, such as with grpc-gateway.

We considered these commonly used packages and included a subset of them into the new, slim googleapis repository.

We hate breaking anyone, even in an alpha, and our apologies that it's causing any difficulties here. The issues with googleapis were serious enough that we felt that we had to do this in this extraordinary circumstance. We're coming out of beta extremely soon, and once we do, we take our responsibility not to break customers (free users or otherwise) very seriously, we appreciate you riding the rough road for the moment!

To Reproduce

Run buf build in proto/:

$ buf build
Failure: buf.build/googleapis/googleapis:cd101b0abb7b4404a0b1ecc1afd4ce10: does not exist

Context info

$ buf --version
1.7.0

I'll submit a PR shortly with a fix!

Originally created by @stefanvanburen on GitHub (Sep 6, 2022). <!-- Headscale is a multinational community across the globe. Our common language is English. Please consider raising the issue in this language. --> <!-- If you have a question, please consider using our Discord for asking questions --> **Issue description** We recently made a change to our managed [buf.build/googleapis/googleapis](https://buf.build/googleapis/googleapis) repository before certifying BSR as v1. You'll need to run `buf mod update` in proto/ to update your buf.lock. [googleapis](https://github.com/googleapis/googleapis) contains over 3800 files, mostly relating to Google's core APIs. This causes numerous issues for most users, such as timeouts when installing packages with huge swaths of unused code to pull in just a few files. Not only is this a lot of code over the network and on disk, but it can cause issues in editors that try to parse all of that code! However, there are only ~30 files used by 99.999% of developers, and these files are the most common dependency in the Protobuf ecosystem. For example: - google.type, which defines useful messages such as DateTime and Money. - google.rpc, for interacting with gRPC. - google.api, for defining APIs, such as with grpc-gateway. We considered these commonly used packages and included a subset of them into the new, slim googleapis repository. We *hate* breaking anyone, even in an alpha, and our apologies that it's causing any difficulties here. The issues with googleapis were serious enough that we felt that we had to do this in this extraordinary circumstance. We're coming out of beta extremely soon, and once we do, we take our responsibility not to break customers (free users or otherwise) very seriously, we appreciate you riding the rough road for the moment! **To Reproduce** Run `buf build` in proto/: ```console $ buf build Failure: buf.build/googleapis/googleapis:cd101b0abb7b4404a0b1ecc1afd4ce10: does not exist ``` **Context info** ```console $ buf --version 1.7.0 ``` I'll submit a PR shortly with a fix!
adam added the bug label 2025-12-29 01:26:52 +01:00
adam closed this issue 2025-12-29 01:26:52 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#320