I'm running into the same issue - for dependencies, Buf generates a relative path under the assumption that the dependent code is in the same top-level object. buf.gen.yaml allows configuring "inputs" (so in your case something like inputs: ["google/type"]
), but that will just result in all the imported files being copied into the project, instead of referencing external dependencies.
Did you end up finding a solution?