prehistoric-laptop-14378
01/05/2024, 11:57 AMIf a codegen target such asI have a build working with a single Go module, but when I try to parametrize protobuf_sources for a second module:will be used in multiple Go modules, then you should use theprotobuf_sources
built-in to parametrize thatparametrize
target for each Go module.protobuf_sources
protobuf_sources(
grpc=True,
go_mod_address=parametrize(
"src/khronos/service:service",
"src/cerberus/service:service",
),
sources=["khronos.proto"],
)
I get an error:
InvalidFieldException: Only fields which will be moved to generated targets may be parametrized, so target generator src/khronos/api/v1:v1 (with type protobuf_sources) cannot parametrize the 'go_mod_address' field.
Can anyone point me in the direction of what I'm doing wrong?prehistoric-laptop-14378
01/08/2024, 1:03 PMnumerous-pizza-15735
05/15/2024, 4:30 PMgo_mod_address=parametrize(
"src/khronos/service:service",
"src/cerberus/service:service",
),
not the correct usage of the parametrize builtin?