Update rules_go to v0.29.0 (#10064)

* Update rules_go, delete patch, fix analyzers, remove old deployContract code, and prune old dependency which was broken in rules_go update

* Undo some WORKSPACE diffs

* Gazelle

* remove nofuzz, fix build issue

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
Preston Van Loon
2022-01-31 01:06:07 -06:00
committed by GitHub
parent ef906cf704
commit 98470fdb13
15 changed files with 46 additions and 235 deletions

View File

@@ -1,22 +0,0 @@
diff --git a/go/tools/builders/nogo_main.go b/go/tools/builders/nogo_main.go
index 2830a666..ce0e6e39 100644
--- a/go/tools/builders/nogo_main.go
+++ b/go/tools/builders/nogo_main.go
@@ -386,13 +386,11 @@ func checkAnalysisResults(actions []*action, pkg *goPackage) string {
}
// Discard diagnostics based on the analyzer configuration.
for _, d := range act.diagnostics {
- // NOTE(golang.org/issue/31008): nilness does not set positions,
- // so don't assume the position is valid.
- f := pkg.fset.File(d.Pos)
- filename := "-"
- if f != nil {
- filename = f.Name()
+ file := pkg.fset.File(d.Pos)
+ if file == nil {
+ continue
}
+ filename := file.Name()
include := true
if len(config.onlyFiles) > 0 {
// This analyzer emits diagnostics for only a set of files.