Open bcspragu opened 1 year ago
The underlying reason is the go-genproto to google-cloud-go message type migration. If you check the current go-genproto repo put aliases into it (example for longrunning). rules_go
has special handling for Google APIs and builds them from source from the go_googleapis
workspace. With build_file_proto_mode = "disable"
it still builds from source, and you don't get those aliases .
You can try to use build_file_proto_mode = "disable_global"
, but that may lead to other packages that depend on Protobufs to stop working.
You can try to use
build_file_proto_mode = "disable_global"
, but that may lead to other packages that depend on Protobufs to stop working.
Indeed, that just seems to move the issue one package down the chain, into the Cloud Vision client itself:
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
external/com_google_cloud_go_vision_v2/apiv1/image_annotator_client.go:383:55: cannot use resp (variable of type *"google.golang.org/genproto/googleapis/longrunning".Operation) as type *longrunningpb.Operation in argument to longrunning.InternalNewOperation
external/com_google_cloud_go_vision_v2/apiv1/image_annotator_client.go:407:55: cannot use resp (variable of type *"google.golang.org/genproto/googleapis/longrunning".Operation) as type *longrunningpb.Operation in argument to longrunning.InternalNewOperation
external/com_google_cloud_go_vision_v2/apiv1/image_annotator_client.go:420:55: cannot use &longrunningpb.Operation{…} (value of type *"google.golang.org/genproto/googleapis/longrunning".Operation) as type *longrunningpb.Operation in argument to longrunning.InternalNewOperation
[... more errors of the same nature omitted ...]
If I then apply build_file_proto_mode = "disable_global"
to the com_google_cloud_go_vision_v2
repo, the build appears to work (albeit with some warnings about multiple copies of ptypes
, rpc/status
, etc), but then linking fails:
link: package conflict error: cloud.google.com/go/longrunning/autogen/longrunningpb: package imports google.golang.org/genproto/googleapis/api/annotations
was compiled with: @org_golang_google_genproto//googleapis/api/annotations:annotations
but was linked with: @go_googleapis//google/api:annotations_go_proto
See https://github.com/bazelbuild/rules_go/issues/1877.
Skimming the linked issue, I didn't see anything immediately relevant.
The issue with longrunning
appears to possibly be unrelated to the current state of Google API Protobufs and Bazel: https://github.com/googleapis/google-cloud-go/issues/7233
This is specific to the rules_go setup. At this point, most packages in go-genproto are just aliases that point to cloud.google.com/go/...
. The code from the go_googleapis
workspace conflicts with that.
Edit: If someone stumbles across this post, don't do it like this. Here is a better solution: https://github.com/wyattanderson/googleapis-reproducer
Original post:
@bcspragu Here's what I ended up doing and why (from my best understanding):
The packages from go-genproto
repository are in the process of being migrated into the individual Google Cloud client libraries. The packages in go-genproto
only contain aliases to those new packages. By default, rules_go
generates all Google API Protobuf from go_googleapis
instead of importing it from the prebuild go-genproto
repo. Gazelle also resolves packages to go_googleapis
. That leads to a conflict between the generated code, and the code from the autogen packages from the client libraries.
For all my failing packages, I went through the individual deps. If those imported anything from googleapis, I pointed Gazelle to genproto. For Cloud logging for example:
go_repository(
name = "com_google_cloud_go_logging",
build_directives = [
"gazelle:resolve go google.golang.org/genproto/googleapis/longrunning @org_golang_google_genproto//googleapis/longrunning", # keep
"gazelle:resolve go google.golang.org/genproto/googleapis/logging/v2 @org_golang_google_genproto//googleapis/logging/v2:logging", # keep
],
importpath = "cloud.google.com/go/logging",
sum = "h1:ZBsZK+JG+oCDT+vaxwqF2egKNRjz8soXiS6Xv79benI=",
version = "v1.6.1",
)
In my root build file, I pointed Gazelle to the prebuilt packages where required. For longrunning for example:
# gazelle:resolve go google.golang.org/genproto/googleapis/longrunning @org_golang_google_genproto//googleapis/longrunning
# gazelle:resolve proto go google/longrunning/operations.proto @org_golang_google_genproto//googleapis/longrunning
As the last step, after that, for a Reason I don't understand, the internal protoc
wrapper inside rules_go resolves the well-known types to their deprecated v1 packages. I ended up patching it like so, no guarantee if that breaks anything else somewhere:
--- go/tools/builders/protoc.go
+++ go/tools/builders/protoc.go
@@ -76,6 +76,9 @@
pluginName := strings.TrimSuffix(
strings.TrimPrefix(filepath.Base(*plugin), "protoc-gen-"), ".exe")
for _, m := range imports {
+ if strings.HasPrefix(m, "google/protobuf/") {
+ continue
+ }
options = append(options, fmt.Sprintf("M%v", m))
}
if runtime.GOOS == "windows" {
Thanks @sessfeld, this worked for me! In my case, it was sufficient to add the build_directives
to the Cloud Vision V2 go_repository
rule, I didn't need the workspace-level replace or the patch. I've now got a functional build at longrunning v0.4.1
Not sure if this issue should be closed, or if there are actual rules_go
changes that should (eventually?) be made here.
thanks @sessfeld . ran into this as well In my case i needed to use kms, pubsub, and cloud logging (which also uses monitoredres in an app
even after fixing the longrunning issue, i ran into proto conflicts which i think was due to gen-proto migration for cloud-libraries
Anyway, for me i had to upgrade longrunning to v0.4.1
, then setup overrides for kms and logging
i documented the full end-to-end at
i'm out of my depth as to say where this process can be improved (i.e, in rules_go
or how gcp cloud libraries are structured (i suspect its in the former).... what i can say is this should not be so hard and not require workarounds
this helped me a lot but i have another issue - can someone help me please?
bazel build //...
INFO: Analyzed 122 targets (0 packages loaded, 0 targets configured).
INFO: Found 122 targets...
WARNING: cleared convenience symlink(s) bazel-bin, bazel-testlogs because their destinations would be ambiguous
ERROR: /private/var/tmp/_bazel_loeffel/4a10d11c1eb568e40670f7e7808d4db4/external/io_opencensus_go_contrib_exporter_stackdriver/BUILD.bazel:3:11: GoCompilePkg external/io_opencensus_go_contrib_exporter_stackdriver/stackdriver.a failed: (Exit 1): builder failed: error executing command (from target @io_opencensus_go_contrib_exporter_stackdriver//:stackdriver) bazel-out/darwin_arm64-opt-exec-2B5CBBC6-ST-a4c8050bd350/bin/external/go_sdk/builder_reset/builder compilepkg -sdk external/go_sdk -installsuffix linux_amd64 -src ... (remaining 113 arguments skipped)
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
external/io_opencensus_go_contrib_exporter_stackdriver/stats.go:622:39: cannot use mdr (variable of type *"google.golang.org/genproto/googleapis/monitoring/v3".CreateMetricDescriptorRequest) as *monitoringpb.CreateMetricDescriptorRequest value in argument to c.CreateMetricDescriptor
external/io_opencensus_go_contrib_exporter_stackdriver/stats.go:626:33: cannot use ts (variable of type *"google.golang.org/genproto/googleapis/monitoring/v3".CreateTimeSeriesRequest) as *monitoringpb.CreateTimeSeriesRequest value in argument to c.CreateTimeSeries
external/io_opencensus_go_contrib_exporter_stackdriver/stats.go:630:40: cannot use ts (variable of type *"google.golang.org/genproto/googleapis/monitoring/v3".CreateTimeSeriesRequest) as *monitoringpb.CreateTimeSeriesRequest value in argument to c.CreateServiceTimeSeries
external/io_opencensus_go_contrib_exporter_stackdriver/trace.go:155:39: cannot use &req (value of type *cloudtrace.BatchWriteSpansRequest) as *tracepb.BatchWriteSpansRequest value in argument to e.client.BatchWriteSpans
external/io_opencensus_go_contrib_exporter_stackdriver/trace.go:180:39: cannot use &req (value of type *cloudtrace.BatchWriteSpansRequest) as *tracepb.BatchWriteSpansRequest value in argument to e.client.BatchWriteSpans
compilepkg: error running subcommand external/go_sdk/pkg/tool/darwin_arm64/compile: exit status 2
INFO: Elapsed time: 1.369s, Critical Path: 1.06s
INFO: 7 processes: 4 internal, 3 darwin-sandbox.
FAILED: Build did NOT complete successfully
load("@bazel_gazelle//:deps.bzl", "go_repository")
def go_repositories():
go_repository(
name = "co_honnef_go_tools",
importpath = "honnef.co/go/tools",
sum = "h1:UoveltGrhghAA7ePc+e+QYDHXrBps2PqFZiHkGR/xK8=",
version = "v0.0.1-2020.1.4",
)
go_repository(
name = "com_github_antihax_optional",
importpath = "github.com/antihax/optional",
sum = "h1:xK2lYat7ZLaVVcIuj82J8kIro4V6kDe0AUDFboUCwcg=",
version = "v1.0.0",
)
go_repository(
name = "com_github_aws_aws_sdk_go",
importpath = "github.com/aws/aws-sdk-go",
sum = "h1:hKAd+X+/BLxVMzH+4zKxbQcQQGrk2UhFX0OTu1Mhon8=",
version = "v1.44.162",
)
go_repository(
name = "com_github_burntsushi_toml",
importpath = "github.com/BurntSushi/toml",
sum = "h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=",
version = "v0.3.1",
)
go_repository(
name = "com_github_burntsushi_xgb",
importpath = "github.com/BurntSushi/xgb",
sum = "h1:1BDTz0u9nC3//pOCMdNH+CiXJVYJh5UQNCOBG7jbELc=",
version = "v0.0.0-20160522181843-27f122750802",
)
go_repository(
name = "com_github_census_instrumentation_opencensus_proto",
build_extra_args = ["-exclude=src"], # keep
importpath = "github.com/census-instrumentation/opencensus-proto",
sum = "h1:iKLQ0xPNFxR/2hzXZMrBo8f1j86j5WHzznCCQxV/b8g=",
version = "v0.4.1",
)
go_repository(
name = "com_github_cespare_xxhash",
importpath = "github.com/cespare/xxhash",
sum = "h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko=",
version = "v1.1.0",
)
go_repository(
name = "com_github_cespare_xxhash_v2",
importpath = "github.com/cespare/xxhash/v2",
sum = "h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44=",
version = "v2.2.0",
)
go_repository(
name = "com_github_chzyer_logex",
importpath = "github.com/chzyer/logex",
sum = "h1:Swpa1K6QvQznwJRcfTfQJmTE72DqScAa40E+fbHEXEE=",
version = "v1.1.10",
)
go_repository(
name = "com_github_chzyer_readline",
importpath = "github.com/chzyer/readline",
sum = "h1:fY5BOSpyZCqRo5OhCuC+XN+r/bBCmeuuJtjz+bCNIf8=",
version = "v0.0.0-20180603132655-2972be24d48e",
)
go_repository(
name = "com_github_chzyer_test",
importpath = "github.com/chzyer/test",
sum = "h1:q763qf9huN11kDQavWsoZXJNW3xEE4JJyHa5Q25/sd8=",
version = "v0.0.0-20180213035817-a1ea475d72b1",
)
go_repository(
name = "com_github_client9_misspell",
importpath = "github.com/client9/misspell",
sum = "h1:ta993UF76GwbvJcIo3Y68y/M3WxlpEHPWIGDkJYwzJI=",
version = "v0.3.4",
)
go_repository(
name = "com_github_cncf_udpa_go",
importpath = "github.com/cncf/udpa/go",
sum = "h1:QQ3GSy+MqSHxm/d8nCtnAiZdYFd45cYZPs8vOOIYKfk=",
version = "v0.0.0-20220112060539-c52dc94e7fbe",
)
go_repository(
name = "com_github_cncf_xds_go",
importpath = "github.com/cncf/xds/go",
sum = "h1:ACGZRIr7HsgBKHsueQ1yM4WaVaXh21ynwqsF8M8tXhA=",
version = "v0.0.0-20230105202645-06c439db220b",
)
go_repository(
name = "com_github_davecgh_go_spew",
importpath = "github.com/davecgh/go-spew",
sum = "h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=",
version = "v1.1.1",
)
go_repository(
name = "com_github_envoyproxy_go_control_plane",
importpath = "github.com/envoyproxy/go-control-plane",
sum = "h1:xdCVXxEe0Y3FQith+0cj2irwZudqGYvecuLB1HtdexY=",
version = "v0.10.3",
)
go_repository(
name = "com_github_envoyproxy_protoc_gen_validate",
importpath = "github.com/envoyproxy/protoc-gen-validate",
sum = "h1:8fATmp6SLK9XevENs3p8w3nMTcllQHfpYK6XGXDce28=",
version = "v0.10.0-SNAPSHOT.8",
)
go_repository(
name = "com_github_ghodss_yaml",
importpath = "github.com/ghodss/yaml",
sum = "h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk=",
version = "v1.0.0",
)
go_repository(
name = "com_github_go_gl_glfw",
importpath = "github.com/go-gl/glfw",
sum = "h1:QbL/5oDUmRBzO9/Z7Seo6zf912W/a6Sr4Eu0G/3Jho0=",
version = "v0.0.0-20190409004039-e6da0acd62b1",
)
go_repository(
name = "com_github_go_gl_glfw_v3_3_glfw",
importpath = "github.com/go-gl/glfw/v3.3/glfw",
sum = "h1:WtGNWLvXpe6ZudgnXrq0barxBImvnnJoMEhXAzcbM0I=",
version = "v0.0.0-20200222043503-6f7a984d4dc4",
)
go_repository(
name = "com_github_golang_glog",
importpath = "github.com/golang/glog",
sum = "h1:nfP3RFugxnNRyKgeWd4oI1nYvXpxrx8ck8ZrcizshdQ=",
version = "v1.0.0",
)
go_repository(
name = "com_github_golang_groupcache",
importpath = "github.com/golang/groupcache",
sum = "h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE=",
version = "v0.0.0-20210331224755-41bb18bfe9da",
)
go_repository(
name = "com_github_golang_mock",
importpath = "github.com/golang/mock",
sum = "h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc=",
version = "v1.6.0",
)
go_repository(
name = "com_github_golang_protobuf",
importpath = "github.com/golang/protobuf",
sum = "h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg=",
version = "v1.5.3",
)
go_repository(
name = "com_github_golang_snappy",
importpath = "github.com/golang/snappy",
sum = "h1:fHPg5GQYlCeLIPB9BZqMVR5nR9A+IM5zcgeTdjMYmLA=",
version = "v0.0.3",
)
go_repository(
name = "com_github_google_btree",
importpath = "github.com/google/btree",
sum = "h1:0udJVsspx3VBr5FwtLhQQtuAsVc79tTq0ocGIPAU6qo=",
version = "v1.0.0",
)
go_repository(
name = "com_github_google_go_cmp",
importpath = "github.com/google/go-cmp",
sum = "h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=",
version = "v0.5.9",
)
go_repository(
name = "com_github_google_martian",
importpath = "github.com/google/martian",
sum = "h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no=",
version = "v2.1.0+incompatible",
)
go_repository(
name = "com_github_google_martian_v3",
importpath = "github.com/google/martian/v3",
sum = "h1:d8MncMlErDFTwQGBK1xhv026j9kqhvw1Qv9IbWT1VLQ=",
version = "v3.2.1",
)
go_repository(
name = "com_github_google_pprof",
importpath = "github.com/google/pprof",
sum = "h1:K6RDEckDVWvDI9JAJYCmNdQXq6neHJOYx3V6jnqNEec=",
version = "v0.0.0-20210720184732-4bb14d4b1be1",
)
go_repository(
name = "com_github_google_renameio",
importpath = "github.com/google/renameio",
sum = "h1:GOZbcHa3HfsPKPlmyPyN2KEohoMXOhdMbHrvbpl2QaA=",
version = "v0.1.0",
)
go_repository(
name = "com_github_google_uuid",
importpath = "github.com/google/uuid",
sum = "h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=",
version = "v1.3.0",
)
go_repository(
name = "com_github_googleapis_enterprise_certificate_proxy",
importpath = "github.com/googleapis/enterprise-certificate-proxy",
sum = "h1:yk9/cqRKtT9wXZSsRH9aurXEpJX+U6FLtpYTdC3R06k=",
version = "v0.2.3",
)
go_repository(
name = "com_github_googleapis_gax_go_v2",
importpath = "github.com/googleapis/gax-go/v2",
sum = "h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ=",
version = "v2.7.0",
)
go_repository(
name = "com_github_grpc_ecosystem_go_grpc_middleware_v2",
importpath = "github.com/grpc-ecosystem/go-grpc-middleware/v2",
sum = "h1:o95KDiV/b1xdkumY5YbLR0/n2+wBxUpgf3HgfKgTyLI=",
version = "v2.0.0-rc.3",
)
go_repository(
name = "com_github_grpc_ecosystem_grpc_gateway",
importpath = "github.com/grpc-ecosystem/grpc-gateway",
sum = "h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo=",
version = "v1.16.0",
)
go_repository(
name = "com_github_grpc_ecosystem_grpc_gateway_v2",
importpath = "github.com/grpc-ecosystem/grpc-gateway/v2",
sum = "h1:lLT7ZLSzGLI08vc9cpd+tYmNWjdKDqyr/2L+f6U12Fk=",
version = "v2.11.3",
)
go_repository(
name = "com_github_hashicorp_golang_lru",
importpath = "github.com/hashicorp/golang-lru",
sum = "h1:0hERBMJE1eitiLkihrMvRVBYAkpHzc/J3QdDN+dAcgU=",
version = "v0.5.1",
)
go_repository(
name = "com_github_iancoleman_strcase",
importpath = "github.com/iancoleman/strcase",
sum = "h1:05I4QRnGpI0m37iZQRuskXh+w77mr6Z41lwQzuHLwW0=",
version = "v0.2.0",
)
go_repository(
name = "com_github_ianlancetaylor_demangle",
importpath = "github.com/ianlancetaylor/demangle",
sum = "h1:mV02weKRL81bEnm8A0HT1/CAelMQDBuQIfLw8n+d6xI=",
version = "v0.0.0-20200824232613-28f6c0f3b639",
)
go_repository(
name = "com_github_jmespath_go_jmespath",
importpath = "github.com/jmespath/go-jmespath",
sum = "h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg=",
version = "v0.4.0",
)
go_repository(
name = "com_github_jmespath_go_jmespath_internal_testify",
importpath = "github.com/jmespath/go-jmespath/internal/testify",
sum = "h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8=",
version = "v1.5.1",
)
go_repository(
name = "com_github_jstemmer_go_junit_report",
importpath = "github.com/jstemmer/go-junit-report",
sum = "h1:6QPYqodiu3GuPL+7mfx+NwDdp2eTkp9IfEUpgAwUN0o=",
version = "v0.9.1",
)
go_repository(
name = "com_github_kisielk_gotool",
importpath = "github.com/kisielk/gotool",
sum = "h1:AV2c/EiW3KqPNT9ZKl07ehoAGi4C5/01Cfbblndcapg=",
version = "v1.0.0",
)
go_repository(
name = "com_github_kr_pretty",
importpath = "github.com/kr/pretty",
sum = "h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=",
version = "v0.1.0",
)
go_repository(
name = "com_github_kr_pty",
importpath = "github.com/kr/pty",
sum = "h1:VkoXIwSboBpnk99O/KFauAEILuNHv5DVFKZMBN/gUgw=",
version = "v1.1.1",
)
go_repository(
name = "com_github_kr_text",
importpath = "github.com/kr/text",
sum = "h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=",
version = "v0.1.0",
)
go_repository(
name = "com_github_lyft_protoc_gen_star_v2",
importpath = "github.com/lyft/protoc-gen-star/v2",
sum = "h1:keaAo8hRuAT0O3DfJ/wM3rufbAjGeJ1lAtWZHDjKGB0=",
version = "v2.0.1",
)
go_repository(
name = "com_github_mindful_hq_earth_category_service_proto",
importpath = "github.com/mindful-hq/earth-category-service-proto",
sum = "h1:/doBP8DV6qtuG045XsVgtG+Qpsb9wYw0y3SCpwBWmrI=",
version = "v0.11.1",
)
go_repository(
name = "com_github_mindful_hq_global_proto_v2",
importpath = "github.com/mindful-hq/global-proto/v2",
sum = "h1:5ybe1wUzTYI/ObQA6+Or3mpkLnhN+VAnDvd6BVtLc1I=",
version = "v2.8.3",
)
go_repository(
name = "com_github_oneofone_xxhash",
importpath = "github.com/OneOfOne/xxhash",
sum = "h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE=",
version = "v1.2.2",
)
go_repository(
name = "com_github_pkg_errors",
importpath = "github.com/pkg/errors",
sum = "h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=",
version = "v0.9.1",
)
go_repository(
name = "com_github_pmezard_go_difflib",
importpath = "github.com/pmezard/go-difflib",
sum = "h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=",
version = "v1.0.0",
)
go_repository(
name = "com_github_prometheus_client_model",
importpath = "github.com/prometheus/client_model",
sum = "h1:gQz4mCbXsO+nc9n1hCxHcGA3Zx3Eo+UHZoInFGUIXNM=",
version = "v0.0.0-20190812154241-14fe0d1b01d4",
)
go_repository(
name = "com_github_prometheus_prometheus",
importpath = "github.com/prometheus/prometheus",
sum = "h1:7QPitgO2kOFG8ecuRn9O/4L9+10He72rVRJvMXrE9Hg=",
version = "v2.5.0+incompatible",
)
go_repository(
name = "com_github_rogpeppe_fastuuid",
importpath = "github.com/rogpeppe/fastuuid",
sum = "h1:Ppwyp6VYCF1nvBTXL3trRso7mXMlRrw9ooo375wvi2s=",
version = "v1.2.0",
)
go_repository(
name = "com_github_rogpeppe_go_internal",
importpath = "github.com/rogpeppe/go-internal",
sum = "h1:RR9dF3JtopPvtkroDZuVD7qquD0bnHlKSqaQhgwt8yk=",
version = "v1.3.0",
)
go_repository(
name = "com_github_spaolacci_murmur3",
importpath = "github.com/spaolacci/murmur3",
sum = "h1:qLC7fQah7D6K1B0ujays3HV9gkFtllcxhzImRR7ArPQ=",
version = "v0.0.0-20180118202830-f09979ecbc72",
)
go_repository(
name = "com_github_spf13_afero",
importpath = "github.com/spf13/afero",
sum = "h1:j49Hj62F0n+DaZ1dDCvhABaPNSGNkt32oRFxI33IEMw=",
version = "v1.9.2",
)
go_repository(
name = "com_github_stretchr_objx",
importpath = "github.com/stretchr/objx",
sum = "h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c=",
version = "v0.5.0",
)
go_repository(
name = "com_github_stretchr_testify",
importpath = "github.com/stretchr/testify",
sum = "h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8=",
version = "v1.8.2",
)
go_repository(
name = "com_github_yuin_goldmark",
importpath = "github.com/yuin/goldmark",
sum = "h1:fVcFKWvrslecOb/tg+Cc05dkeYx540o0FuFt3nUVDoE=",
version = "v1.4.13",
)
go_repository(
name = "com_google_cloud_go",
importpath = "cloud.google.com/go",
sum = "h1:38CZoKGlCnPZjGdyj0ZfpoGae0/wgNfy5F0byyxg0Gk=",
version = "v0.109.0",
)
go_repository(
name = "com_google_cloud_go_accessapproval",
importpath = "cloud.google.com/go/accessapproval",
sum = "h1:/nTivgnV/n1CaAeo+ekGexTYUsKEU9jUVkoY5359+3Q=",
version = "v1.5.0",
)
go_repository(
name = "com_google_cloud_go_accesscontextmanager",
importpath = "cloud.google.com/go/accesscontextmanager",
sum = "h1:CFhNhU7pcD11cuDkQdrE6PQJgv0EXNKNv06jIzbLlCU=",
version = "v1.4.0",
)
go_repository(
name = "com_google_cloud_go_aiplatform",
importpath = "cloud.google.com/go/aiplatform",
sum = "h1:DBi3Jk9XjCJ4pkkLM4NqKgj3ozUL1wq4l+d3/jTGXAI=",
version = "v1.27.0",
)
go_repository(
name = "com_google_cloud_go_analytics",
importpath = "cloud.google.com/go/analytics",
sum = "h1:NKw6PpQi6V1O+KsjuTd+bhip9d0REYu4NevC45vtGp8=",
version = "v0.12.0",
)
go_repository(
name = "com_google_cloud_go_apigateway",
importpath = "cloud.google.com/go/apigateway",
sum = "h1:IIoXKR7FKrEAQhMTz5hK2wiDz2WNFHS7eVr/L1lE/rM=",
version = "v1.4.0",
)
go_repository(
name = "com_google_cloud_go_apigeeconnect",
importpath = "cloud.google.com/go/apigeeconnect",
sum = "h1:AONoTYJviyv1vS4IkvWzq69gEVdvHx35wKXc+e6wjZQ=",
version = "v1.4.0",
)
go_repository(
name = "com_google_cloud_go_appengine",
importpath = "cloud.google.com/go/appengine",
sum = "h1:lmG+O5oaR9xNwaRBwE2XoMhwQHsHql5IoiGr1ptdDwU=",
version = "v1.5.0",
)
go_repository(
name = "com_google_cloud_go_area120",
importpath = "cloud.google.com/go/area120",
sum = "h1:TCMhwWEWhCn8d44/Zs7UCICTWje9j3HuV6nVGMjdpYw=",
version = "v0.6.0",
)
go_repository(
name = "com_google_cloud_go_artifactregistry",
importpath = "cloud.google.com/go/artifactregistry",
sum = "h1:3d0LRAU1K6vfqCahhl9fx2oGHcq+s5gftdix4v8Ibrc=",
version = "v1.9.0",
)
go_repository(
name = "com_google_cloud_go_asset",
importpath = "cloud.google.com/go/asset",
sum = "h1:aCrlaLGJWTODJX4G56ZYzJefITKEWNfbjjtHSzWpxW0=",
version = "v1.10.0",
)
go_repository(
name = "com_google_cloud_go_assuredworkloads",
importpath = "cloud.google.com/go/assuredworkloads",
sum = "h1:hhIdCOowsT1GG5eMCIA0OwK6USRuYTou/1ZeNxCSRtA=",
version = "v1.9.0",
)
go_repository(
name = "com_google_cloud_go_automl",
importpath = "cloud.google.com/go/automl",
sum = "h1:BMioyXSbg7d7xLibn47cs0elW6RT780IUWr42W8rp2Q=",
version = "v1.8.0",
)
go_repository(
name = "com_google_cloud_go_baremetalsolution",
importpath = "cloud.google.com/go/baremetalsolution",
sum = "h1:g9KO6SkakcYPcc/XjAzeuUrEOXlYPnMpuiaywYaGrmQ=",
version = "v0.4.0",
)
go_repository(
name = "com_google_cloud_go_batch",
importpath = "cloud.google.com/go/batch",
sum = "h1:1jvEBY55OH4Sd2FxEXQfxGExFWov1A/IaRe+Z5Z71Fw=",
version = "v0.4.0",
)
go_repository(
name = "com_google_cloud_go_beyondcorp",
importpath = "cloud.google.com/go/beyondcorp",
sum = "h1:w+4kThysgl0JiKshi2MKDCg2NZgOyqOI0wq2eBZyrzA=",
version = "v0.3.0",
)
go_repository(
name = "com_google_cloud_go_bigquery",
importpath = "cloud.google.com/go/bigquery",
sum = "h1:Wi4dITi+cf9VYp4VH2T9O41w0kCW0uQTELq2Z6tukN0=",
version = "v1.44.0",
)
go_repository(
name = "com_google_cloud_go_billing",
importpath = "cloud.google.com/go/billing",
sum = "h1:Xkii76HWELHwBtkQVZvqmSo9GTr0O+tIbRNnMcGdlg4=",
version = "v1.7.0",
)
go_repository(
name = "com_google_cloud_go_binaryauthorization",
importpath = "cloud.google.com/go/binaryauthorization",
sum = "h1:pL70vXWn9TitQYXBWTK2abHl2JHLwkFRjYw6VflRqEA=",
version = "v1.4.0",
)
go_repository(
name = "com_google_cloud_go_certificatemanager",
importpath = "cloud.google.com/go/certificatemanager",
sum = "h1:tzbR4UHBbgsewMWUD93JHi8EBi/gHBoSAcY1/sThFGk=",
version = "v1.4.0",
)
go_repository(
name = "com_google_cloud_go_channel",
importpath = "cloud.google.com/go/channel",
sum = "h1:pNuUlZx0Jb0Ts9P312bmNMuH5IiFWIR4RUtLb70Ke5s=",
version = "v1.9.0",
)
go_repository(
name = "com_google_cloud_go_cloudbuild",
importpath = "cloud.google.com/go/cloudbuild",
sum = "h1:TAAmCmAlOJ4uNBu6zwAjwhyl/7fLHHxIEazVhr3QBbQ=",
version = "v1.4.0",
)
go_repository(
name = "com_google_cloud_go_clouddms",
importpath = "cloud.google.com/go/clouddms",
sum = "h1:UhzHIlgFfMr6luVYVNydw/pl9/U5kgtjCMJHnSvoVws=",
version = "v1.4.0",
)
go_repository(
name = "com_google_cloud_go_cloudtasks",
importpath = "cloud.google.com/go/cloudtasks",
sum = "h1:faUiUgXjW8yVZ7XMnKHKm1WE4OldPBUWWfIRN/3z1dc=",
version = "v1.8.0",
)
go_repository(
name = "com_google_cloud_go_compute",
importpath = "cloud.google.com/go/compute",
sum = "h1:FEigFqoDbys2cvFkZ9Fjq4gnHBP55anJ0yQyau2f9oY=",
version = "v1.18.0",
)
go_repository(
name = "com_google_cloud_go_compute_metadata",
importpath = "cloud.google.com/go/compute/metadata",
sum = "h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY=",
version = "v0.2.3",
)
go_repository(
name = "com_google_cloud_go_contactcenterinsights",
importpath = "cloud.google.com/go/contactcenterinsights",
sum = "h1:tTQLI/ZvguUf9Hv+36BkG2+/PeC8Ol1q4pBW+tgCx0A=",
version = "v1.4.0",
)
go_repository(
name = "com_google_cloud_go_container",
importpath = "cloud.google.com/go/container",
sum = "h1:nbEK/59GyDRKKlo1SqpohY1TK8LmJ2XNcvS9Gyom2A0=",
version = "v1.7.0",
)
go_repository(
name = "com_google_cloud_go_containeranalysis",
importpath = "cloud.google.com/go/containeranalysis",
sum = "h1:2824iym832ljKdVpCBnpqm5K94YT/uHTVhNF+dRTXPI=",
version = "v0.6.0",
)
go_repository(
name = "com_google_cloud_go_datacatalog",
importpath = "cloud.google.com/go/datacatalog",
sum = "h1:6kZ4RIOW/uT7QWC5SfPfq/G8sYzr/v+UOmOAxy4Z1TE=",
version = "v1.8.0",
)
go_repository(
name = "com_google_cloud_go_dataflow",
importpath = "cloud.google.com/go/dataflow",
sum = "h1:CW3541Fm7KPTyZjJdnX6NtaGXYFn5XbFC5UcjgALKvU=",
version = "v0.7.0",
)
go_repository(
name = "com_google_cloud_go_dataform",
importpath = "cloud.google.com/go/dataform",
sum = "h1:vLwowLF2ZB5J5gqiZCzv076lDI/Rd7zYQQFu5XO1PSg=",
version = "v0.5.0",
)
go_repository(
name = "com_google_cloud_go_datafusion",
importpath = "cloud.google.com/go/datafusion",
sum = "h1:j5m2hjWovTZDTQak4MJeXAR9yN7O+zMfULnjGw/OOLg=",
version = "v1.5.0",
)
go_repository(
name = "com_google_cloud_go_datalabeling",
importpath = "cloud.google.com/go/datalabeling",
sum = "h1:dp8jOF21n/7jwgo/uuA0RN8hvLcKO4q6s/yvwevs2ZM=",
version = "v0.6.0",
)
go_repository(
name = "com_google_cloud_go_dataplex",
importpath = "cloud.google.com/go/dataplex",
sum = "h1:cNxeA2DiWliQGi21kPRqnVeQ5xFhNoEjPRt1400Pm8Y=",
version = "v1.4.0",
)
go_repository(
name = "com_google_cloud_go_dataproc",
importpath = "cloud.google.com/go/dataproc",
sum = "h1:gVOqNmElfa6n/ccG/QDlfurMWwrK3ezvy2b2eDoCmS0=",
version = "v1.8.0",
)
go_repository(
name = "com_google_cloud_go_dataqna",
importpath = "cloud.google.com/go/dataqna",
sum = "h1:gx9jr41ytcA3dXkbbd409euEaWtofCVXYBvJz3iYm18=",
version = "v0.6.0",
)
go_repository(
name = "com_google_cloud_go_datastore",
importpath = "cloud.google.com/go/datastore",
sum = "h1:4siQRf4zTiAVt/oeH4GureGkApgb2vtPQAtOmhpqQwE=",
version = "v1.10.0",
)
go_repository(
name = "com_google_cloud_go_datastream",
importpath = "cloud.google.com/go/datastream",
sum = "h1:PgIgbhedBtYBU6POGXFMn2uSl9vpqubc3ewTNdcU8Mk=",
version = "v1.5.0",
)
go_repository(
name = "com_google_cloud_go_deploy",
importpath = "cloud.google.com/go/deploy",
sum = "h1:kI6dxt8Ml0is/x7YZjLveTvR7YPzXAUD/8wQZ2nH5zA=",
version = "v1.5.0",
)
go_repository(
name = "com_google_cloud_go_dialogflow",
importpath = "cloud.google.com/go/dialogflow",
sum = "h1:HYHVOkoxQ9bSfNIelSZYNAtUi4CeSrCnROyOsbOqPq8=",
version = "v1.19.0",
)
go_repository(
name = "com_google_cloud_go_dlp",
importpath = "cloud.google.com/go/dlp",
sum = "h1:9I4BYeJSVKoSKgjr70fLdRDumqcUeVmHV4fd5f9LR6Y=",
version = "v1.7.0",
)
go_repository(
name = "com_google_cloud_go_documentai",
importpath = "cloud.google.com/go/documentai",
sum = "h1:jfq09Fdjtnpnmt/MLyf6A3DM3ynb8B2na0K+vSXvpFM=",
version = "v1.10.0",
)
go_repository(
name = "com_google_cloud_go_domains",
importpath = "cloud.google.com/go/domains",
sum = "h1:pu3JIgC1rswIqi5romW0JgNO6CTUydLYX8zyjiAvO1c=",
version = "v0.7.0",
)
go_repository(
name = "com_google_cloud_go_edgecontainer",
importpath = "cloud.google.com/go/edgecontainer",
sum = "h1:hd6J2n5dBBRuAqnNUEsKWrp6XNPKsaxwwIyzOPZTokk=",
version = "v0.2.0",
)
go_repository(
name = "com_google_cloud_go_errorreporting",
importpath = "cloud.google.com/go/errorreporting",
sum = "h1:kj1XEWMu8P0qlLhm3FwcaFsUvXChV/OraZwA70trRR0=",
version = "v0.3.0",
)
go_repository(
name = "com_google_cloud_go_essentialcontacts",
importpath = "cloud.google.com/go/essentialcontacts",
sum = "h1:b6csrQXCHKQmfo9h3dG/pHyoEh+fQG1Yg78a53LAviY=",
version = "v1.4.0",
)
go_repository(
name = "com_google_cloud_go_eventarc",
importpath = "cloud.google.com/go/eventarc",
sum = "h1:AgCqrmMMIcel5WWKkzz5EkCUKC3Rl5LNMMYsS+LvsI0=",
version = "v1.8.0",
)
go_repository(
name = "com_google_cloud_go_filestore",
importpath = "cloud.google.com/go/filestore",
sum = "h1:yjKOpzvqtDmL5AXbKttLc8j0hL20kuC1qPdy5HPcxp0=",
version = "v1.4.0",
)
go_repository(
name = "com_google_cloud_go_firestore",
importpath = "cloud.google.com/go/firestore",
sum = "h1:IBlRyxgGySXu5VuW0RgGFlTtLukSnNkpDiEOMkQkmpA=",
version = "v1.9.0",
)
go_repository(
name = "com_google_cloud_go_functions",
importpath = "cloud.google.com/go/functions",
sum = "h1:35tgv1fQOtvKqH/uxJMzX3w6usneJ0zXpsFr9KAVhNE=",
version = "v1.9.0",
)
go_repository(
name = "com_google_cloud_go_gaming",
importpath = "cloud.google.com/go/gaming",
sum = "h1:97OAEQtDazAJD7yh/kvQdSCQuTKdR0O+qWAJBZJ4xiA=",
version = "v1.8.0",
)
go_repository(
name = "com_google_cloud_go_gkebackup",
importpath = "cloud.google.com/go/gkebackup",
sum = "h1:4K+jiv4ocqt1niN8q5Imd8imRoXBHTrdnJVt/uFFxF4=",
version = "v0.3.0",
)
go_repository(
name = "com_google_cloud_go_gkeconnect",
importpath = "cloud.google.com/go/gkeconnect",
sum = "h1:zAcvDa04tTnGdu6TEZewaLN2tdMtUOJJ7fEceULjguA=",
version = "v0.6.0",
)
go_repository(
name = "com_google_cloud_go_gkehub",
importpath = "cloud.google.com/go/gkehub",
sum = "h1:JTcTaYQRGsVm+qkah7WzHb6e9sf1C0laYdRPn9aN+vg=",
version = "v0.10.0",
)
go_repository(
name = "com_google_cloud_go_gkemulticloud",
importpath = "cloud.google.com/go/gkemulticloud",
sum = "h1:8F1NhJj8ucNj7lK51UZMtAjSWTgP1zO18XF6vkfiPPU=",
version = "v0.4.0",
)
go_repository(
name = "com_google_cloud_go_gsuiteaddons",
importpath = "cloud.google.com/go/gsuiteaddons",
sum = "h1:TGT2oGmO5q3VH6SjcrlgPUWI0njhYv4kywLm6jag0to=",
version = "v1.4.0",
)
go_repository(
name = "com_google_cloud_go_iam",
importpath = "cloud.google.com/go/iam",
sum = "h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk=",
version = "v0.8.0",
)
go_repository(
name = "com_google_cloud_go_iap",
importpath = "cloud.google.com/go/iap",
sum = "h1:BGEXovwejOCt1zDk8hXq0bOhhRu9haXKWXXXp2B4wBM=",
version = "v1.5.0",
)
go_repository(
name = "com_google_cloud_go_ids",
importpath = "cloud.google.com/go/ids",
sum = "h1:LncHK4HHucb5Du310X8XH9/ICtMwZ2PCfK0ScjWiJoY=",
version = "v1.2.0",
)
go_repository(
name = "com_google_cloud_go_iot",
importpath = "cloud.google.com/go/iot",
sum = "h1:Y9+oZT9jD4GUZzORXTU45XsnQrhxmDT+TFbPil6pRVQ=",
version = "v1.4.0",
)
go_repository(
name = "com_google_cloud_go_kms",
importpath = "cloud.google.com/go/kms",
sum = "h1:OWRZzrPmOZUzurjI2FBGtgY2mB1WaJkqhw6oIwSj0Yg=",
version = "v1.6.0",
)
go_repository(
name = "com_google_cloud_go_language",
importpath = "cloud.google.com/go/language",
sum = "h1:3Wa+IUMamL4JH3Zd3cDZUHpwyqplTACt6UZKRD2eCL4=",
version = "v1.8.0",
)
go_repository(
name = "com_google_cloud_go_lifesciences",
importpath = "cloud.google.com/go/lifesciences",
sum = "h1:tIqhivE2LMVYkX0BLgG7xL64oNpDaFFI7teunglt1tI=",
version = "v0.6.0",
)
go_repository(
name = "com_google_cloud_go_logging",
build_directives = [
"gazelle:resolve go google.golang.org/genproto/googleapis/longrunning @org_golang_google_genproto//googleapis/longrunning", # keep
"gazelle:resolve go google.golang.org/genproto/googleapis/logging/v2 @org_golang_google_genproto//googleapis/logging/v2:logging", # keep
],
importpath = "cloud.google.com/go/logging",
sum = "h1:ZBsZK+JG+oCDT+vaxwqF2egKNRjz8soXiS6Xv79benI=",
version = "v1.6.1",
)
go_repository(
name = "com_google_cloud_go_longrunning",
importpath = "cloud.google.com/go/longrunning",
sum = "h1:v+yFJOfKC3yZdY6ZUI933pIYdhyhV8S3NpWrXWmg7jM=",
version = "v0.4.1",
)
go_repository(
name = "com_google_cloud_go_managedidentities",
importpath = "cloud.google.com/go/managedidentities",
sum = "h1:3Kdajn6X25yWQFhFCErmKSYTSvkEd3chJROny//F1A0=",
version = "v1.4.0",
)
go_repository(
name = "com_google_cloud_go_maps",
importpath = "cloud.google.com/go/maps",
sum = "h1:kLReRbclTgJefw2fcCbdLPLhPj0U6UUWN10ldG8sdOU=",
version = "v0.1.0",
)
go_repository(
name = "com_google_cloud_go_mediatranslation",
importpath = "cloud.google.com/go/mediatranslation",
sum = "h1:qAJzpxmEX+SeND10Y/4868L5wfZpo4Y3BIEnIieP4dk=",
version = "v0.6.0",
)
go_repository(
name = "com_google_cloud_go_memcache",
importpath = "cloud.google.com/go/memcache",
sum = "h1:yLxUzJkZVSH2kPaHut7k+7sbIBFpvSh1LW9qjM2JDjA=",
version = "v1.7.0",
)
go_repository(
name = "com_google_cloud_go_metastore",
importpath = "cloud.google.com/go/metastore",
sum = "h1:3KcShzqWdqxrDEXIBWpYJpOOrgpDj+HlBi07Grot49Y=",
version = "v1.8.0",
)
go_repository(
name = "com_google_cloud_go_monitoring",
importpath = "cloud.google.com/go/monitoring",
sum = "h1:+X79DyOP/Ny23XIqSIb37AvFWSxDN15w/ktklVvPLso=",
version = "v1.12.0",
)
go_repository(
name = "com_google_cloud_go_networkconnectivity",
importpath = "cloud.google.com/go/networkconnectivity",
sum = "h1:BVdIKaI68bihnXGdCVL89Jsg9kq2kg+II30fjVqo62E=",
version = "v1.7.0",
)
go_repository(
name = "com_google_cloud_go_networkmanagement",
importpath = "cloud.google.com/go/networkmanagement",
sum = "h1:mDHA3CDW00imTvC5RW6aMGsD1bH+FtKwZm/52BxaiMg=",
version = "v1.5.0",
)
go_repository(
name = "com_google_cloud_go_networksecurity",
importpath = "cloud.google.com/go/networksecurity",
sum = "h1:qDEX/3sipg9dS5JYsAY+YvgTjPR63cozzAWop8oZS94=",
version = "v0.6.0",
)
go_repository(
name = "com_google_cloud_go_notebooks",
importpath = "cloud.google.com/go/notebooks",
sum = "h1:AC8RPjNvel3ExgXjO1YOAz+teg9+j+89TNxa7pIZfww=",
version = "v1.5.0",
)
go_repository(
name = "com_google_cloud_go_optimization",
importpath = "cloud.google.com/go/optimization",
sum = "h1:7PxOq9VTT7TMib/6dMoWpMvWS2E4dJEvtYzjvBreaec=",
version = "v1.2.0",
)
go_repository(
name = "com_google_cloud_go_orchestration",
importpath = "cloud.google.com/go/orchestration",
sum = "h1:39d6tqvNjd/wsSub1Bn4cEmrYcet5Ur6xpaN+SxOxtY=",
version = "v1.4.0",
)
go_repository(
name = "com_google_cloud_go_orgpolicy",
importpath = "cloud.google.com/go/orgpolicy",
sum = "h1:erF5PHqDZb6FeFrUHiYj2JK2BMhsk8CyAg4V4amJ3rE=",
version = "v1.5.0",
)
go_repository(
name = "com_google_cloud_go_osconfig",
importpath = "cloud.google.com/go/osconfig",
sum = "h1:NO0RouqCOM7M2S85Eal6urMSSipWwHU8evzwS+siqUI=",
version = "v1.10.0",
)
go_repository(
name = "com_google_cloud_go_oslogin",
importpath = "cloud.google.com/go/oslogin",
sum = "h1:pKGDPfeZHDybtw48WsnVLjoIPMi9Kw62kUE5TXCLCN4=",
version = "v1.7.0",
)
go_repository(
name = "com_google_cloud_go_phishingprotection",
importpath = "cloud.google.com/go/phishingprotection",
sum = "h1:OrwHLSRSZyaiOt3tnY33dsKSedxbMzsXvqB21okItNQ=",
version = "v0.6.0",
)
go_repository(
name = "com_google_cloud_go_policytroubleshooter",
importpath = "cloud.google.com/go/policytroubleshooter",
sum = "h1:NQklJuOUoz1BPP+Epjw81COx7IISWslkZubz/1i0UN8=",
version = "v1.4.0",
)
go_repository(
name = "com_google_cloud_go_privatecatalog",
importpath = "cloud.google.com/go/privatecatalog",
sum = "h1:Vz86uiHCtNGm1DeC32HeG2VXmOq5JRYA3VRPf8ZEcSg=",
version = "v0.6.0",
)
go_repository(
name = "com_google_cloud_go_pubsub",
importpath = "cloud.google.com/go/pubsub",
sum = "h1:q+J/Nfr6Qx4RQeu3rJcnN48SNC0qzlYzSeqkPq93VHs=",
version = "v1.27.1",
)
go_repository(
name = "com_google_cloud_go_pubsublite",
importpath = "cloud.google.com/go/pubsublite",
sum = "h1:iqrD8vp3giTb7hI1q4TQQGj77cj8zzgmMPsTZtLnprM=",
version = "v1.5.0",
)
go_repository(
name = "com_google_cloud_go_recaptchaenterprise_v2",
importpath = "cloud.google.com/go/recaptchaenterprise/v2",
sum = "h1:UqzFfb/WvhwXGDF1eQtdHLrmni+iByZXY4h3w9Kdyv8=",
version = "v2.5.0",
)
go_repository(
name = "com_google_cloud_go_recommendationengine",
importpath = "cloud.google.com/go/recommendationengine",
sum = "h1:6w+WxPf2LmUEqX0YyvfCoYb8aBYOcbIV25Vg6R0FLGw=",
version = "v0.6.0",
)
go_repository(
name = "com_google_cloud_go_recommender",
importpath = "cloud.google.com/go/recommender",
sum = "h1:9kMZQGeYfcOD/RtZfcNKGKtoex3DdoB4zRgYU/WaIwE=",
version = "v1.8.0",
)
go_repository(
name = "com_google_cloud_go_redis",
importpath = "cloud.google.com/go/redis",
sum = "h1:/zTwwBKIAD2DEWTrXZp8WD9yD/gntReF/HkPssVYd0U=",
version = "v1.10.0",
)
go_repository(
name = "com_google_cloud_go_resourcemanager",
importpath = "cloud.google.com/go/resourcemanager",
sum = "h1:NDao6CHMwEZIaNsdWy+tuvHaavNeGP06o1tgrR0kLvU=",
version = "v1.4.0",
)
go_repository(
name = "com_google_cloud_go_resourcesettings",
importpath = "cloud.google.com/go/resourcesettings",
sum = "h1:eTzOwB13WrfF0kuzG2ZXCfB3TLunSHBur4s+HFU6uSM=",
version = "v1.4.0",
)
go_repository(
name = "com_google_cloud_go_retail",
importpath = "cloud.google.com/go/retail",
sum = "h1:N9fa//ecFUOEPsW/6mJHfcapPV0wBSwIUwpVZB7MQ3o=",
version = "v1.11.0",
)
go_repository(
name = "com_google_cloud_go_run",
importpath = "cloud.google.com/go/run",
sum = "h1:AWPuzU7Xtaj3Jf+QarDWIs6AJ5hM1VFQ+F6Q+VZ6OT4=",
version = "v0.3.0",
)
go_repository(
name = "com_google_cloud_go_scheduler",
importpath = "cloud.google.com/go/scheduler",
sum = "h1:K/mxOewgHGeKuATUJNGylT75Mhtjmx1TOkKukATqMT8=",
version = "v1.7.0",
)
go_repository(
name = "com_google_cloud_go_secretmanager",
importpath = "cloud.google.com/go/secretmanager",
sum = "h1:xE6uXljAC1kCR8iadt9+/blg1fvSbmenlsDN4fT9gqw=",
version = "v1.9.0",
)
go_repository(
name = "com_google_cloud_go_security",
importpath = "cloud.google.com/go/security",
sum = "h1:KSKzzJMyUoMRQzcz7azIgqAUqxo7rmQ5rYvimMhikqg=",
version = "v1.10.0",
)
go_repository(
name = "com_google_cloud_go_securitycenter",
importpath = "cloud.google.com/go/securitycenter",
sum = "h1:QTVtk/Reqnx2bVIZtJKm1+mpfmwRwymmNvlaFez7fQY=",
version = "v1.16.0",
)
go_repository(
name = "com_google_cloud_go_servicecontrol",
importpath = "cloud.google.com/go/servicecontrol",
sum = "h1:ImIzbOu6y4jL6ob65I++QzvqgFaoAKgHOG+RU9/c4y8=",
version = "v1.5.0",
)
go_repository(
name = "com_google_cloud_go_servicedirectory",
importpath = "cloud.google.com/go/servicedirectory",
sum = "h1:f7M8IMcVzO3T425AqlZbP3yLzeipsBHtRza8vVFYMhQ=",
version = "v1.7.0",
)
go_repository(
name = "com_google_cloud_go_servicemanagement",
importpath = "cloud.google.com/go/servicemanagement",
sum = "h1:TpkCO5M7dhKSy1bKUD9o/sSEW/U1Gtx7opA1fsiMx0c=",
version = "v1.5.0",
)
go_repository(
name = "com_google_cloud_go_serviceusage",
importpath = "cloud.google.com/go/serviceusage",
sum = "h1:b0EwJxPJLpavSljMQh0RcdHsUrr5DQ+Nelt/3BAs5ro=",
version = "v1.4.0",
)
go_repository(
name = "com_google_cloud_go_shell",
importpath = "cloud.google.com/go/shell",
sum = "h1:b1LFhFBgKsG252inyhtmsUUZwchqSz3WTvAIf3JFo4g=",
version = "v1.4.0",
)
go_repository(
name = "com_google_cloud_go_spanner",
importpath = "cloud.google.com/go/spanner",
sum = "h1:NvdTpRwf7DTegbfFdPjAWyD7bOVu0VeMqcvR9aCQCAc=",
version = "v1.41.0",
)
go_repository(
name = "com_google_cloud_go_speech",
importpath = "cloud.google.com/go/speech",
sum = "h1:yK0ocnFH4Wsf0cMdUyndJQ/hPv02oTJOxzi6AgpBy4s=",
version = "v1.9.0",
)
go_repository(
name = "com_google_cloud_go_storage",
importpath = "cloud.google.com/go/storage",
sum = "h1:F5QDG5ChchaAVQhINh24U99OWHURqrW8OmQcGKXcbgI=",
version = "v1.28.1",
)
go_repository(
name = "com_google_cloud_go_storagetransfer",
importpath = "cloud.google.com/go/storagetransfer",
sum = "h1:fUe3OydbbvHcAYp07xY+2UpH4AermGbmnm7qdEj3tGE=",
version = "v1.6.0",
)
go_repository(
name = "com_google_cloud_go_talent",
importpath = "cloud.google.com/go/talent",
sum = "h1:MrekAGxLqAeAol4Sc0allOVqUGO8j+Iim8NMvpiD7tM=",
version = "v1.4.0",
)
go_repository(
name = "com_google_cloud_go_texttospeech",
importpath = "cloud.google.com/go/texttospeech",
sum = "h1:ccPiHgTewxgyAeCWgQWvZvrLmbfQSFABTMAfrSPLPyY=",
version = "v1.5.0",
)
go_repository(
name = "com_google_cloud_go_tpu",
importpath = "cloud.google.com/go/tpu",
sum = "h1:ztIdKoma1Xob2qm6QwNh4Xi9/e7N3IfvtwG5AcNsj1g=",
version = "v1.4.0",
)
go_repository(
name = "com_google_cloud_go_trace",
importpath = "cloud.google.com/go/trace",
sum = "h1:GFPLxbp5/FzdgTzor3nlNYNxMd6hLmzkE7sA9F0qQcA=",
version = "v1.8.0",
)
go_repository(
name = "com_google_cloud_go_translate",
importpath = "cloud.google.com/go/translate",
sum = "h1:AOYOH3MspzJ/bH1YXzB+xTE8fMpn3mwhLjugwGXvMPI=",
version = "v1.4.0",
)
go_repository(
name = "com_google_cloud_go_video",
importpath = "cloud.google.com/go/video",
sum = "h1:ttlvO4J5c1VGq6FkHqWPD/aH6PfdxujHt+muTJlW1Zk=",
version = "v1.9.0",
)
go_repository(
name = "com_google_cloud_go_videointelligence",
importpath = "cloud.google.com/go/videointelligence",
sum = "h1:RPFgVVXbI2b5vnrciZjtsUgpNKVtHO/WIyXUhEfuMhA=",
version = "v1.9.0",
)
go_repository(
name = "com_google_cloud_go_vision_v2",
importpath = "cloud.google.com/go/vision/v2",
sum = "h1:TQHxRqvLMi19azwm3qYuDbEzZWmiKJNTpGbkNsfRCik=",
version = "v2.5.0",
)
go_repository(
name = "com_google_cloud_go_vmmigration",
importpath = "cloud.google.com/go/vmmigration",
sum = "h1:A2Tl2ZmwMRpvEmhV2ibISY85fmQR+Y5w9a0PlRz5P3s=",
version = "v1.3.0",
)
go_repository(
name = "com_google_cloud_go_vmwareengine",
importpath = "cloud.google.com/go/vmwareengine",
sum = "h1:JMPZaOT/gIUxVlTqSl/QQ32Y2k+r0stNeM1NSqhVP9o=",
version = "v0.1.0",
)
go_repository(
name = "com_google_cloud_go_vpcaccess",
importpath = "cloud.google.com/go/vpcaccess",
sum = "h1:woHXXtnW8b9gLFdWO9HLPalAddBQ9V4LT+1vjKwR3W8=",
version = "v1.5.0",
)
go_repository(
name = "com_google_cloud_go_webrisk",
importpath = "cloud.google.com/go/webrisk",
sum = "h1:ypSnpGlJnZSXbN9a13PDmAYvVekBLnGKxQ3Q9SMwnYY=",
version = "v1.7.0",
)
go_repository(
name = "com_google_cloud_go_websecurityscanner",
importpath = "cloud.google.com/go/websecurityscanner",
sum = "h1:y7yIFg/h/mO+5Y5aCOtVAnpGUOgqCH5rXQ2Oc8Oq2+g=",
version = "v1.4.0",
)
go_repository(
name = "com_google_cloud_go_workflows",
importpath = "cloud.google.com/go/workflows",
sum = "h1:7Chpin9p50NTU8Tb7qk+I11U/IwVXmDhEoSsdccvInE=",
version = "v1.9.0",
)
go_repository(
name = "com_shuralyov_dmitri_gpu_mtl",
importpath = "dmitri.shuralyov.com/gpu/mtl",
sum = "h1:VpgP7xuJadIUuKccphEpTJnWhS2jkQyMt6Y7pJCD7fY=",
version = "v0.0.0-20190408044501-666a987793e9",
)
go_repository(
name = "in_gopkg_check_v1",
importpath = "gopkg.in/check.v1",
sum = "h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=",
version = "v1.0.0-20180628173108-788fd7840127",
)
go_repository(
name = "in_gopkg_errgo_v2",
importpath = "gopkg.in/errgo.v2",
sum = "h1:0vLT13EuvQ0hNvakwLuFZ/jYrLp5F3kcWHXdRggjCE8=",
version = "v2.1.0",
)
go_repository(
name = "in_gopkg_yaml_v2",
importpath = "gopkg.in/yaml.v2",
sum = "h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10=",
version = "v2.2.8",
)
go_repository(
name = "in_gopkg_yaml_v3",
importpath = "gopkg.in/yaml.v3",
sum = "h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=",
version = "v3.0.1",
)
go_repository(
name = "io_opencensus_go",
importpath = "go.opencensus.io",
sum = "h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0=",
version = "v0.24.0",
)
go_repository(
name = "io_opencensus_go_contrib_exporter_stackdriver",
importpath = "contrib.go.opencensus.io/exporter/stackdriver",
sum = "h1:bjBKzIf7/TAkxd7L2utGaLM78bmUWlCval5K9UeElbY=",
version = "v0.13.12",
)
go_repository(
name = "io_opentelemetry_go_proto_otlp",
importpath = "go.opentelemetry.io/proto/otlp",
sum = "h1:rwOQPCuKAKmwGKq2aVNnYIibI6wnV7EvzgfTCzcdGg8=",
version = "v0.7.0",
)
go_repository(
name = "io_rsc_binaryregexp",
importpath = "rsc.io/binaryregexp",
sum = "h1:HfqmD5MEmC0zvwBuF187nq9mdnXjXsSivRiXN7SmRkE=",
version = "v0.2.0",
)
go_repository(
name = "io_rsc_quote_v3",
importpath = "rsc.io/quote/v3",
sum = "h1:9JKUTTIUgS6kzR9mK1YuGKv6Nl+DijDNIc0ghT58FaY=",
version = "v3.1.0",
)
go_repository(
name = "io_rsc_sampler",
importpath = "rsc.io/sampler",
sum = "h1:7uVkIFmeBqHfdjD+gZwtXXI+RODJ2Wc4O7MPEh/QiW4=",
version = "v1.3.0",
)
go_repository(
name = "org_golang_google_api",
importpath = "google.golang.org/api",
sum = "h1:l+rh0KYUooe9JGbGVx71tbFo4SMbMTXK3I3ia2QSEeU=",
version = "v0.110.0",
)
go_repository(
name = "org_golang_google_appengine",
importpath = "google.golang.org/appengine",
sum = "h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c=",
version = "v1.6.7",
)
go_repository(
name = "org_golang_google_genproto",
importpath = "google.golang.org/genproto",
sum = "h1:ijGwO+0vL2hJt5gaygqP2j6PfflOBrRot0IczKbmtio=",
version = "v0.0.0-20230209215440-0dfe4f8abfcc",
)
go_repository(
name = "org_golang_google_grpc",
importpath = "google.golang.org/grpc",
replace = "google.golang.org/grpc",
sum = "h1:NU1vATrlsAR21VjgN+UpE0aP9p0VogsnDKOkfHABNew=",
version = "v1.53.0-dev.0.20230317183452-b638faff2204",
)
go_repository(
name = "org_golang_google_grpc_cmd_protoc_gen_go_grpc",
importpath = "google.golang.org/grpc/cmd/protoc-gen-go-grpc",
sum = "h1:M1YKkFIboKNieVO5DLUEVzQfGwJD30Nv2jfUgzb5UcE=",
version = "v1.1.0",
)
go_repository(
name = "org_golang_google_grpc_examples",
importpath = "google.golang.org/grpc/examples",
sum = "h1:qvsHH4rznMyt8C0umnWLr/oTJPjYrtZ2OMnPZaYLIK8=",
version = "v0.0.0-20210424002626-9572fd6faeae",
)
go_repository(
name = "org_golang_google_grpc_gcp_observability",
importpath = "google.golang.org/grpc/gcp/observability",
sum = "h1:n7iw+3z/+KgNw598WbfbRP7osJy/8JQ1peJ9mmvcscw=",
version = "v0.0.0-20230318005552-70c52915099a",
)
go_repository(
name = "org_golang_google_grpc_stats_opencensus",
importpath = "google.golang.org/grpc/stats/opencensus",
sum = "h1:MeDNVH2KmQ9Z3AbXKsvU9UcbRR8LfpZVLmZAVWIX0nI=",
version = "v0.0.0-20230317183452-b638faff2204",
)
go_repository(
name = "org_golang_google_protobuf",
importpath = "google.golang.org/protobuf",
sum = "h1:7QBf+IK2gx70Ap/hDsOmam3GE0v9HicjfEdAxE62UoM=",
version = "v1.29.1",
)
go_repository(
name = "org_golang_x_crypto",
importpath = "golang.org/x/crypto",
sum = "h1:7I4JAnoQBe7ZtJcBaYHi5UtiO8tQHbUSXxL+pnGRANg=",
version = "v0.0.0-20210921155107-089bfa567519",
)
go_repository(
name = "org_golang_x_exp",
importpath = "golang.org/x/exp",
sum = "h1:QE6XYQK6naiK1EPAe1g/ILLxN5RBoH5xkJk3CqlMI/Y=",
version = "v0.0.0-20200224162631-6cc2880d07d6",
)
go_repository(
name = "org_golang_x_image",
importpath = "golang.org/x/image",
sum = "h1:+qEpEAPhDZ1o0x3tHzZTQDArnOixOzGD9HUJfcg0mb4=",
version = "v0.0.0-20190802002840-cff245a6509b",
)
go_repository(
name = "org_golang_x_lint",
importpath = "golang.org/x/lint",
sum = "h1:VLliZ0d+/avPrXXH+OakdXhpJuEoBZuwh1m2j7U6Iug=",
version = "v0.0.0-20210508222113-6edffad5e616",
)
go_repository(
name = "org_golang_x_mobile",
importpath = "golang.org/x/mobile",
sum = "h1:4+4C/Iv2U4fMZBiMCc98MG1In4gJY5YRhtpDNeDeHWs=",
version = "v0.0.0-20190719004257-d2bd2a29d028",
)
go_repository(
name = "org_golang_x_mod",
importpath = "golang.org/x/mod",
sum = "h1:LUYupSeNrTNCGzR/hVBk2NHZO4hXcVaW1k4Qx7rjPx8=",
version = "v0.8.0",
)
go_repository(
name = "org_golang_x_net",
importpath = "golang.org/x/net",
sum = "h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=",
version = "v0.8.0",
)
go_repository(
name = "org_golang_x_oauth2",
importpath = "golang.org/x/oauth2",
sum = "h1:HuArIo48skDwlrvM3sEdHXElYslAMsf3KwRkkW4MC4s=",
version = "v0.5.0",
)
go_repository(
name = "org_golang_x_sync",
importpath = "golang.org/x/sync",
sum = "h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=",
version = "v0.1.0",
)
go_repository(
name = "org_golang_x_sys",
importpath = "golang.org/x/sys",
sum = "h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=",
version = "v0.6.0",
)
go_repository(
name = "org_golang_x_term",
importpath = "golang.org/x/term",
sum = "h1:clScbb1cHjoCkyRbWwBEUZ5H/tIFu5TAXIqaZD0Gcjw=",
version = "v0.6.0",
)
go_repository(
name = "org_golang_x_text",
importpath = "golang.org/x/text",
sum = "h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=",
version = "v0.8.0",
)
go_repository(
name = "org_golang_x_time",
importpath = "golang.org/x/time",
sum = "h1:/5xXl8Y5W96D+TtHSlonuFqGHIWVuyCkGJLwGh9JJFs=",
version = "v0.0.0-20191024005414-555d28b269f0",
)
go_repository(
name = "org_golang_x_tools",
importpath = "golang.org/x/tools",
sum = "h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM=",
version = "v0.6.0",
)
go_repository(
name = "org_golang_x_xerrors",
importpath = "golang.org/x/xerrors",
sum = "h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk=",
version = "v0.0.0-20220907171357-04be3eba64a2",
)
@wyattanderson came up with a really good solution for the whole issue in this nice repo: https://github.com/wyattanderson/googleapis-reproducer
For the price of adding a bunch of Gazelle directives to your own workspace, you can cut out all the magic from the go_googleapis
repo. We've been using that exact setup for about a week now, and I highly recommend it.
What version of rules_go are you using?
v0.37.0
What version of gazelle are you using?
v0.28.0
What version of Bazel are you using?
5.2.0
Does this issue reproduce with the latest releases of all the above?
Yes
What operating system and processor architecture are you using?
Linux, x86_64
Any other potentially useful information about your toolchain?
Using
llvm_toolchain
, don't think that is relevant here though.What did you do?
I imported the Cloud Vision Go client into an existing Bazel project, using a workflow like:
What did you expect to see?
That my build would continue to function.
What did you see instead?
I know that
rules_go
has special handling for genproto/googleapis, but I can't figure out what the correct interplay here is. Downgradingcloud.google.com/go/longrunning
to v0.2.0 fixes the issue, v0.3.0 and v0.4.0 have the same error.In my WORKSPACE, I register project deps (in
deps.bzl
) beforegazelle_dependencies
, here are some relevant ones:I've also tried peppering around
build_file_proto_mode = "disable"
, but that hasn't fixed things.