From 71b22e7709a4ede5b4d3908b264f17d3877fb7c3 Mon Sep 17 00:00:00 2001 From: Piotr Tabor Date: Thu, 20 Jul 2023 16:12:41 +0200 Subject: [PATCH] Update: golang.org/x/exp & golang.org/x/oauth2 deps. Update: - golang.org/x/exp v0.0.0-20190121172915-509febef88a4 -> v0.0.0-20230713183714-613f0c0eb8a1 - golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be -> v0.10.0 These were very old dependencies and there is no way to override them to newer ones by Gazelle user. 1. You cannot execute go_repository before calling gazelle_dependencies as @bazel_gazelle_go_repository_cache is not yet ready. 2. If you execute go_repository AFTER calling gazelle_dependences, the previously loaded old verision by gazelle_dependencies takes precendence. It led to issues like: - https://github.com/bazelbuild/bazel-gazelle/issues/1468 - https://stackoverflow.com/questions/64929217/bazel-gazelle-error-no-such-package-org-golang-x-tools-go-analysis-internal Fixes: #1468 --- deps.bzl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deps.bzl b/deps.bzl index 9aaa7f615..33d19cf03 100644 --- a/deps.bzl +++ b/deps.bzl @@ -278,8 +278,8 @@ def gazelle_dependencies( go_repository, name = "org_golang_x_exp", importpath = "golang.org/x/exp", - sum = "h1:c2HOrn5iMezYjSlGPncknSEr/8x5LELb/ilJbXi9DEA=", - version = "v0.0.0-20190121172915-509febef88a4", + sum = "h1:MGwJjxBy0HJshjDNfLsYO8xppfqWlA5ZT9OhtUUhTNw=", + version = "v0.0.0-20230713183714-613f0c0eb8a1", ) _maybe( go_repository, @@ -306,8 +306,8 @@ def gazelle_dependencies( go_repository, name = "org_golang_x_oauth2", importpath = "golang.org/x/oauth2", - sum = "h1:vEDujvNQGv4jgYKudGeI/+DAX4Jffq6hpD55MmoEvKs=", - version = "v0.0.0-20180821212333-d2e6202438be", + sum = "h1:zHCpF2Khkwy4mMB4bv0U37YtJdTGW8jI0glAApi0Kh8=", + version = "v0.10.0", ) _maybe( go_repository,