From dd0513a15c1d2dcac01961507e5a766edbcf84d3 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Fri, 24 Jan 2025 07:22:24 -0800 Subject: [PATCH 1/2] chore(bazel): update Bazel Go deps (#1601) Updated Go dependencies for Bazel repositories. --- repositories.bzl | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/repositories.bzl b/repositories.bzl index c5bc8cc8..2c3633d3 100644 --- a/repositories.bzl +++ b/repositories.bzl @@ -1308,8 +1308,8 @@ def com_googleapis_gapic_generator_go_repositories(): go_repository( name = "org_golang_x_crypto", importpath = "golang.org/x/crypto", - sum = "h1:L5SG1JTTXupVV3n6sUqMTeWbjAyfPwoda2DLX8J8FrQ=", - version = "v0.29.0", + sum = "h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U=", + version = "v0.31.0", ) go_repository( name = "org_golang_x_exp", @@ -1332,8 +1332,8 @@ def com_googleapis_gapic_generator_go_repositories(): go_repository( name = "org_golang_x_net", importpath = "golang.org/x/net", - sum = "h1:68CPQngjLL0r2AlUKiSxtQFKvzRVbnzLwMUn5SzcLHo=", - version = "v0.31.0", + sum = "h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I=", + version = "v0.33.0", ) go_repository( name = "org_golang_x_oauth2", @@ -1344,26 +1344,26 @@ def com_googleapis_gapic_generator_go_repositories(): go_repository( name = "org_golang_x_sync", importpath = "golang.org/x/sync", - sum = "h1:fEo0HyrW1GIgZdpbhCRO0PkJajUS5H9IFUztCgEo2jQ=", - version = "v0.9.0", + sum = "h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ=", + version = "v0.10.0", ) go_repository( name = "org_golang_x_sys", importpath = "golang.org/x/sys", - sum = "h1:wBqf8DvsY9Y/2P8gAfPDEYNuS30J4lPHJxXSb/nJZ+s=", - version = "v0.27.0", + sum = "h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA=", + version = "v0.28.0", ) go_repository( name = "org_golang_x_term", importpath = "golang.org/x/term", - sum = "h1:WEQa6V3Gja/BhNxg540hBip/kkaYtRg3cxg4oXSw4AU=", - version = "v0.26.0", + sum = "h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q=", + version = "v0.27.0", ) go_repository( name = "org_golang_x_text", importpath = "golang.org/x/text", - sum = "h1:gK/Kv2otX8gz+wn7Rmb3vT96ZwuoxnQlY+HlJVj7Qug=", - version = "v0.20.0", + sum = "h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo=", + version = "v0.21.0", ) go_repository( name = "org_golang_x_time", From ec48c6871115d7688d2fc92623b3b046d9125d7f Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Fri, 24 Jan 2025 08:06:22 -0800 Subject: [PATCH 2/2] chore(bazel): update Bazel Go deps (#1604) Updated Go dependencies for Bazel repositories. --- WORKSPACE | 2 +- go.mod | 2 +- renovate.json | 2 +- repositories.bzl | 164 +++++++++++++++++++---------------------------- 4 files changed, 69 insertions(+), 101 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index 97b2a669..fcd5331f 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -89,7 +89,7 @@ com_googleapis_gapic_generator_go_repositories() load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") -go_register_toolchains(version = "1.21.13") +go_register_toolchains(version = "1.22.11") go_rules_dependencies() diff --git a/go.mod b/go.mod index 3f0071e0..29ba0c30 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/googleapis/gapic-generator-go -go 1.21 +go 1.22.11 require ( cloud.google.com/go/iam v1.3.0 diff --git a/renovate.json b/renovate.json index 9383163b..eb2f7a08 100644 --- a/renovate.json +++ b/renovate.json @@ -25,7 +25,7 @@ "groupName": "deps", "force": { "constraints": { - "go": "1.21" + "go": "1.22" } } } diff --git a/repositories.bzl b/repositories.bzl index 2c3633d3..d0753213 100644 --- a/repositories.bzl +++ b/repositories.bzl @@ -28,25 +28,12 @@ def com_googleapis_gapic_generator_go_repositories(): strip_prefix = "rules_gapic-%s" % _rules_gapic_version, urls = ["https://github.com/googleapis/rules_gapic/archive/v%s.tar.gz" % _rules_gapic_version], ) - go_repository( - name = "co_honnef_go_tools", - importpath = "honnef.co/go/tools", - sum = "h1:/hemPrYIhOhy8zYrNj+069zDB68us2sMGsfkFJO0iZs=", - version = "v0.0.0-20190523083050-ea95bdfd59fc", - ) - go_repository( name = "com_github_bufbuild_protocompile", importpath = "github.com/bufbuild/protocompile", sum = "h1:+jW/wnLMLxaCEG8AX9lD0bQ5v9h1RUiMKOBOT5ll9dM=", version = "v0.10.0", ) - go_repository( - name = "com_github_burntsushi_toml", - importpath = "github.com/BurntSushi/toml", - sum = "h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=", - version = "v0.3.1", - ) go_repository( name = "com_github_census_instrumentation_opencensus_proto", importpath = "github.com/census-instrumentation/opencensus-proto", @@ -59,23 +46,11 @@ def com_googleapis_gapic_generator_go_repositories(): sum = "h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=", version = "v2.3.0", ) - 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:WBZRG4aNOuI15bLRrCgN8fCq8E5Xuty6jGbmSNEvSsU=", - version = "v0.0.0-20191209042840-269d4d468f6f", - ) go_repository( name = "com_github_cncf_xds_go", importpath = "github.com/cncf/xds/go", - sum = "h1:N+3sFI5GUjRKBi+i0TxYVST9h4Ie192jJWpHvthBBgg=", - version = "v0.0.0-20240723142845-024c85f92f20", + sum = "h1:QVw89YDxXxEe+l8gU8ETbOasdwEV+avkR75ZzsVV9WI=", + version = "v0.0.0-20240905190251-b4127c9b8d78", ) go_repository( name = "com_github_davecgh_go_spew", @@ -86,8 +61,8 @@ def com_googleapis_gapic_generator_go_repositories(): go_repository( name = "com_github_envoyproxy_go_control_plane", importpath = "github.com/envoyproxy/go-control-plane", - sum = "h1:HzkeUz1Knt+3bK+8LG1bxOO/jzWZmdxpwC51i202les=", - version = "v0.13.0", + sum = "h1:vPfJZCkob6yTMEgS+0TwfTUfbHjfy/6vOJ8hUWX/uXE=", + version = "v0.13.1", ) go_repository( name = "com_github_envoyproxy_protoc_gen_validate", @@ -140,12 +115,6 @@ def com_googleapis_gapic_generator_go_repositories(): 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:G5FRp8JnTd7RQH5kemVNlMeyXQAztQ3mOWV95KxsXH8=", - version = "v1.1.1", - ) go_repository( name = "com_github_golang_protobuf", importpath = "github.com/golang/protobuf", @@ -179,8 +148,8 @@ def com_googleapis_gapic_generator_go_repositories(): go_repository( name = "com_github_google_s2a_go", importpath = "github.com/google/s2a-go", - sum = "h1:zZDs9gcbt9ZPLV0ndSyQk6Kacx2g/X+SKYovpnz3SMM=", - version = "v0.1.8", + sum = "h1:LGD7gtMgezd8a/Xak7mEWL0PjoTQFvpRudN895yqKW0=", + version = "v0.1.9", ) go_repository( name = "com_github_google_uuid", @@ -208,8 +177,8 @@ def com_googleapis_gapic_generator_go_repositories(): "gazelle:resolve proto proto google/rpc/code.proto @com_google_googleapis//google/rpc:code_proto", ], importpath = "github.com/googleapis/gax-go/v2", - sum = "h1:f+jMrjBPl+DL9nI4IQzLUxMq7XrAqFYB7hBPqMNIe8o=", - version = "v2.14.0", + sum = "h1:hb0FFeiPaQskmvakKu5EbCbpntQn48jyHuvrkurSS/Q=", + version = "v2.14.1", ) go_repository( name = "com_github_googleapis_grpc_fallback_go", @@ -217,6 +186,12 @@ def com_googleapis_gapic_generator_go_repositories(): sum = "h1:tEDqZnKGKQpYrmEuu3VVBTw3pijHJsKz/Lu2U0L9AV0=", version = "v0.1.4", ) + go_repository( + name = "com_github_googlecloudplatform_opentelemetry_operations_go_detectors_gcp", + importpath = "github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp", + sum = "h1:cZpsGsWTIFKymTA0je7IIvi1O7Es7apb9CF3EQlOcfE=", + version = "v1.24.2", + ) go_repository( name = "com_github_gorilla_mux", importpath = "github.com/gorilla/mux", @@ -293,13 +268,6 @@ def com_googleapis_gapic_generator_go_repositories(): 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_russross_blackfriday_v2", importpath = "github.com/russross/blackfriday/v2", @@ -360,12 +328,6 @@ def com_googleapis_gapic_generator_go_repositories(): sum = "h1:RWq5SEjt8o25SROyN3z2OrDB9l7RPd3lwTWU8EcEdcI=", version = "v1.19.0", ) - 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", @@ -501,14 +463,14 @@ def com_googleapis_gapic_generator_go_repositories(): go_repository( name = "com_google_cloud_go_auth", importpath = "cloud.google.com/go/auth", - sum = "h1:Ic5SZz2lsvbYcWT5dfjNWgw6tTlGi2Wc8hyQSC9BstA=", - version = "v0.11.0", + sum = "h1:A5C4dKV/Spdvxcl0ggWwWEzzP7AZMJSEIgrkngwhGYM=", + version = "v0.14.0", ) go_repository( name = "com_google_cloud_go_auth_oauth2adapt", importpath = "cloud.google.com/go/auth/oauth2adapt", - sum = "h1:V6a6XDu2lTwPZWOawrAa9HUK+DB2zfJyTuciBG5hFkU=", - version = "v0.2.6", + sum = "h1:/Lc7xODdqcEw8IrZ9SvwnlLX6j9FHQM74z6cBk9Rw6M=", + version = "v0.2.7", ) go_repository( name = "com_google_cloud_go_automl", @@ -597,8 +559,8 @@ def com_googleapis_gapic_generator_go_repositories(): go_repository( name = "com_google_cloud_go_compute_metadata", importpath = "cloud.google.com/go/compute/metadata", - sum = "h1:UxK4uu/Tn+I3p2dYWTfiX4wva7aYlKixAHn3fyqngqo=", - version = "v0.5.2", + sum = "h1:A6hENjEsCDtC1k8byVsgwvVcioamEHvZ4j01OwKxG9I=", + version = "v0.6.0", ) go_repository( name = "com_google_cloud_go_contactcenterinsights", @@ -1149,8 +1111,8 @@ def com_googleapis_gapic_generator_go_repositories(): go_repository( name = "dev_cel_expr", importpath = "cel.dev/expr", - sum = "h1:yloc84fytn4zmJX2GU3TkXGsaieaV7dQ057Qs4sIG2Y=", - version = "v0.16.0", + sum = "h1:RwRhoH17VhAu9U5CMvMhH1PDVgf0tuz9FT+24AfMLfU=", + version = "v0.16.2", ) go_repository( name = "in_gopkg_check_v1", @@ -1182,6 +1144,12 @@ def com_googleapis_gapic_generator_go_repositories(): sum = "h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0=", version = "v0.24.0", ) + go_repository( + name = "io_opentelemetry_go_contrib_detectors_gcp", + importpath = "go.opentelemetry.io/contrib/detectors/gcp", + sum = "h1:G1JQOreVrfhRkner+l4mrGxmfqYCAuy76asTDAo0xsA=", + version = "v1.31.0", + ) go_repository( name = "io_opentelemetry_go_contrib_instrumentation_google_golang_org_grpc_otelgrpc", build_directives = [ @@ -1220,8 +1188,8 @@ def com_googleapis_gapic_generator_go_repositories(): "gazelle:resolve go go.opentelemetry.io/otel/metric/embedded @io_opentelemetry_go_otel_metric//embedded:go_default_library", ], importpath = "go.opentelemetry.io/otel", - sum = "h1:PdomN/Al4q/lN6iBJEN3AwPvUiHPMlt93c8bqTG5Llw=", - version = "v1.29.0", + sum = "h1:NsJcKPIW0D0H3NgzPDHmo0WW6SptzPdqg/L1zsIm2hY=", + version = "v1.31.0", ) go_repository( name = "io_opentelemetry_go_otel_metric", @@ -1229,14 +1197,20 @@ def com_googleapis_gapic_generator_go_repositories(): "gazelle:resolve go go.opentelemetry.io/otel/attribute @io_opentelemetry_go_otel//attribute:go_default_library", ], importpath = "go.opentelemetry.io/otel/metric", - sum = "h1:vPf/HFWTNkPu1aYeIsc98l4ktOQaL6LeSoeV2g+8YLc=", - version = "v1.29.0", + sum = "h1:FSErL0ATQAmYHUIzSezZibnyVlft1ybhy4ozRPcF2fE=", + version = "v1.31.0", ) go_repository( name = "io_opentelemetry_go_otel_sdk", importpath = "go.opentelemetry.io/otel/sdk", - sum = "h1:vkqKjk7gwhS8VaWb0POZKmIEDimRCMsopNYnriHyryo=", - version = "v1.29.0", + sum = "h1:xLY3abVHYZ5HSfOg3l2E5LUj2Cwva5Y7yGxnSW9H5Gk=", + version = "v1.31.0", + ) + go_repository( + name = "io_opentelemetry_go_otel_sdk_metric", + importpath = "go.opentelemetry.io/otel/sdk/metric", + sum = "h1:i9hxxLJF/9kkvfHppyLL55aW7iIJz4JjxTeYusH7zMc=", + version = "v1.31.0", ) go_repository( name = "io_opentelemetry_go_otel_trace", @@ -1244,8 +1218,8 @@ def com_googleapis_gapic_generator_go_repositories(): "gazelle:resolve go go.opentelemetry.io/otel/attribute @io_opentelemetry_go_otel//attribute:go_default_library", ], importpath = "go.opentelemetry.io/otel/trace", - sum = "h1:J/8ZNK4XgR7a21DZUAsbF8pZ5Jcw1VhACmnYt39JTi4=", - version = "v1.29.0", + sum = "h1:ffjsj1aRouKewfr85U2aGagJ46+MvodynlQ1HYdmJys=", + version = "v1.31.0", ) go_repository( name = "org_golang_google_api", @@ -1254,8 +1228,8 @@ def com_googleapis_gapic_generator_go_repositories(): "gazelle:resolve go go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc @io_opentelemetry_go_contrib_instrumentation_google_golang_org_grpc_otelgrpc//:go_default_library", ], importpath = "google.golang.org/api", - sum = "h1:HMNffZ57OoZCRYSbdWVRoqOa8V8NIHLL0CzdBPLztWk=", - version = "v0.210.0", + sum = "h1:x6JCjEWeZ9PFCRe9z0FBrNwj7pB7DOAqT35N+IPnAUA=", + version = "v0.218.0", ) go_repository( name = "org_golang_google_appengine", @@ -1272,26 +1246,26 @@ def com_googleapis_gapic_generator_go_repositories(): go_repository( name = "org_golang_google_genproto_googleapis_api", importpath = "google.golang.org/genproto/googleapis/api", - sum = "h1:v+j+5gpj0FopU0KKLDGfDo9ZRRpKdi5UBrCP0f76kuY=", - version = "v0.0.0-20241206012308-a4fef0638583", + sum = "h1:CkkIfIt50+lT6NHAVoRYEyAvQGFM7xEwXUUywFvEb3Q=", + version = "v0.0.0-20241209162323-e6fa225c2576", ) go_repository( name = "org_golang_google_genproto_googleapis_bytestream", importpath = "google.golang.org/genproto/googleapis/bytestream", - sum = "h1:rY93Be8/KL+EtFM4im9lxMzjGn796GnwVUd75cyFCJg=", - version = "v0.0.0-20241118233622-e639e219e697", + sum = "h1:NtrhicUU5+S4TaE5AurusJUYfAo/QB8a+kbIXipuJeI=", + version = "v0.0.0-20250115164207-1a7da9e5054f", ) go_repository( name = "org_golang_google_genproto_googleapis_rpc", importpath = "google.golang.org/genproto/googleapis/rpc", - sum = "h1:8ZmaLZE4XWrtU3MyClkYqqtl6Oegr3235h7jxsDyqCY=", - version = "v0.0.0-20241209162323-e6fa225c2576", + sum = "h1:OxYkA3wjPsZyBylwymxSHa7ViiW1Sml4ToBrncvFehI=", + version = "v0.0.0-20250115164207-1a7da9e5054f", ) go_repository( name = "org_golang_google_grpc", importpath = "google.golang.org/grpc", - sum = "h1:zWnc1Vrcno+lHZCOofnIMvycFcc0QRGIzm9dhnDX68E=", - version = "v1.67.1", + sum = "h1:MF5TftSMkd8GLw/m0KM6V8CMOCY6NZ1NQDPGFgbTt4A=", + version = "v1.69.4", ) go_repository( name = "org_golang_google_protobuf", @@ -1302,14 +1276,14 @@ def com_googleapis_gapic_generator_go_repositories(): "-exclude=**/testdata", ], importpath = "google.golang.org/protobuf", - sum = "h1:8Ar7bF+apOIoThw1EdZl0p1oWvMqTHmpA2fRTyZO8io=", - version = "v1.35.2", + sum = "h1:82DV7MYdb8anAVi3qge1wSnMDrnKK7ebr+I0hHRN1BU=", + version = "v1.36.3", ) go_repository( name = "org_golang_x_crypto", importpath = "golang.org/x/crypto", - sum = "h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U=", - version = "v0.31.0", + sum = "h1:euUpcYgM8WcP71gNpTqQCn6rC2t6ULUPiOzfWaXVVfc=", + version = "v0.32.0", ) go_repository( name = "org_golang_x_exp", @@ -1317,12 +1291,6 @@ def com_googleapis_gapic_generator_go_repositories(): sum = "h1:GoHiUyI/Tp2nVkLI2mCxVkOjsbSXD66ic0XW0js0R9g=", version = "v0.0.0-20230905200255-921286631fa9", ) - go_repository( - name = "org_golang_x_lint", - importpath = "golang.org/x/lint", - sum = "h1:XQyxROzUlZH+WIQwySDgnISgOivlhjIEwaQaJEJrrN0=", - version = "v0.0.0-20190313153728-d0100b6bd8b3", - ) go_repository( name = "org_golang_x_mod", importpath = "golang.org/x/mod", @@ -1332,14 +1300,14 @@ def com_googleapis_gapic_generator_go_repositories(): go_repository( name = "org_golang_x_net", importpath = "golang.org/x/net", - sum = "h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I=", - version = "v0.33.0", + sum = "h1:Mb7Mrk043xzHgnRM88suvJFwzVrRfHEHJEl5/71CKw0=", + version = "v0.34.0", ) go_repository( name = "org_golang_x_oauth2", importpath = "golang.org/x/oauth2", - sum = "h1:KTBBxWqUa0ykRPLtV69rRto9TLXcqYkeswu48x/gvNE=", - version = "v0.24.0", + sum = "h1:CY4y7XT9v0cRI9oupztF8AgiIu99L/ksR/Xp/6jrZ70=", + version = "v0.25.0", ) go_repository( name = "org_golang_x_sync", @@ -1350,14 +1318,14 @@ def com_googleapis_gapic_generator_go_repositories(): go_repository( name = "org_golang_x_sys", importpath = "golang.org/x/sys", - sum = "h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA=", - version = "v0.28.0", + sum = "h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU=", + version = "v0.29.0", ) go_repository( name = "org_golang_x_term", importpath = "golang.org/x/term", - sum = "h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q=", - version = "v0.27.0", + sum = "h1:/Ts8HFuMR2E6IP/jlo7QVLZHggjKQbhu/7H0LJFr3Gg=", + version = "v0.28.0", ) go_repository( name = "org_golang_x_text", @@ -1368,8 +1336,8 @@ def com_googleapis_gapic_generator_go_repositories(): go_repository( name = "org_golang_x_time", importpath = "golang.org/x/time", - sum = "h1:9i3RxcPv3PZnitoVGMPDKZSq1xW1gK1Xy3ArNOGZfEg=", - version = "v0.8.0", + sum = "h1:EsRrnYcQiGH+5FfbgvV4AP7qEZstoyrHB0DzarOQ4ZY=", + version = "v0.9.0", ) go_repository( name = "org_golang_x_tools",