mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 04:54:05 -05:00
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:
22
third_party/io_bazel_rules_go.patch
vendored
22
third_party/io_bazel_rules_go.patch
vendored
@@ -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.
|
||||
Reference in New Issue
Block a user