Skip to content

Commit f2d409b

Browse files
authored
upgrade x/tools to 0.15.0 (#3751)
1 parent e9363db commit f2d409b

File tree

6 files changed

+22350
-22032
lines changed

6 files changed

+22350
-22032
lines changed

go/private/repositories.bzl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ def go_rules_dependencies(force = False):
6464
wrapper(
6565
http_archive,
6666
name = "org_golang_x_tools",
67-
# v0.14.0, latest as of 2023-10-29
67+
# v0.15.0, latest as of 2023-11-12
6868
urls = [
69-
"https://mirror.bazel.build/github.com/golang/tools/archive/refs/tags/v0.14.0.zip",
70-
"https://github.com/golang/tools/archive/refs/tags/v0.14.0.zip",
69+
"https://mirror.bazel.build/github.com/golang/tools/archive/refs/tags/v0.15.0.zip",
70+
"https://github.com/golang/tools/archive/refs/tags/v0.15.0.zip",
7171
],
72-
sha256 = "9c71911c61a791d8b13368ffbc409a0b38859cac80a4b5039487d2a27399e8b9",
73-
strip_prefix = "tools-0.14.0",
72+
sha256 = "e76a03b11719138502c7fef44d5e1dc4469f8c2fcb2ee4a1d96fb09aaea13362",
73+
strip_prefix = "tools-0.15.0",
7474
patches = [
7575
# deletegopls removes the gopls subdirectory. It contains a nested
7676
# module with additional dependencies. It's not needed by rules_go.

go/tools/builders/nogo_main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ func checkPackage(analyzers []*analysis.Analyzer, packagePath string, packageFil
234234

235235
// Process diagnostics and encode facts for importers of this package.
236236
diagnostics := checkAnalysisResults(roots, pkg)
237-
facts := pkg.facts.Encode(true/* skipMethodSorting */)
237+
facts := pkg.facts.Encode()
238238
return diagnostics, facts, nil
239239
}
240240

@@ -396,7 +396,7 @@ func load(packagePath string, imp *importer, filenames []string) (*goPackage, er
396396
}
397397
pkg.types, pkg.typesInfo = types, info
398398

399-
pkg.facts, err = facts.NewDecoder(pkg.types).Decode(true/* skipMethodSorting */, imp.readFacts)
399+
pkg.facts, err = facts.NewDecoder(pkg.types).Decode(imp.readFacts)
400400
if err != nil {
401401
return nil, fmt.Errorf("internal error decoding facts: %v", err)
402402
}

tests/integration/popular_repos/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ test_suite(
186186
"@org_golang_x_tools//internal/event/export/ocagent:ocagent_test",
187187
"@org_golang_x_tools//internal/event/export/ocagent/wire:wire_test",
188188
"@org_golang_x_tools//internal/event/label:label_test",
189-
"@org_golang_x_tools//internal/fastwalk:fastwalk_test",
190189
"@org_golang_x_tools//internal/fuzzy:fuzzy_test",
191190
"@org_golang_x_tools//internal/gopathwalk:gopathwalk_test",
192191
"@org_golang_x_tools//internal/jsonrpc2:jsonrpc2_test",

tests/integration/popular_repos/README.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ This runs tests from the repository `golang.org/x/tools <https://golang.org/x/to
184184
* @org_golang_x_tools//internal/event/export/ocagent:ocagent_test
185185
* @org_golang_x_tools//internal/event/export/ocagent/wire:wire_test
186186
* @org_golang_x_tools//internal/event/label:label_test
187-
* @org_golang_x_tools//internal/fastwalk:fastwalk_test
188187
* @org_golang_x_tools//internal/fuzzy:fuzzy_test
189188
* @org_golang_x_tools//internal/gopathwalk:gopathwalk_test
190189
* @org_golang_x_tools//internal/jsonrpc2:jsonrpc2_test
@@ -232,5 +231,3 @@ This runs tests from the repository `golang.org/x/mod <https://golang.org/x/mod>
232231
* @org_golang_x_mod//sumdb/dirhash:dirhash_test
233232
* @org_golang_x_mod//sumdb/note:note_test
234233
* @org_golang_x_mod//sumdb/storage:storage_test
235-
236-

0 commit comments

Comments
 (0)