mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Strip the extra path in go_types_memoize.patch
The go_types_memoize.patch was generated using the git diff command, with the 'go' field manually added to the path. It would be more appropriate to set the patch_strip value to 1 when applying such patches. Signed-off-by: Dawei Shen <shendawei.sdw@antgroup.com>
This commit is contained in:
@@ -96,7 +96,7 @@ go_download_sdk(
|
||||
# analysis. Without this fix, the nogo rules will often fail to run in
|
||||
# time on our continuous integration.
|
||||
patch = "//tools:go_types_memoize.patch",
|
||||
patch_strip = 2,
|
||||
patch_strip = 1,
|
||||
version = "1.23.2",
|
||||
)
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
diff --git a/go/src/go/types/scope.go b/src/go/types/scope.go
|
||||
diff --git a/src/go/types/scope.go b/src/go/types/scope.go
|
||||
index 010727eb72..0f134b872e 100644
|
||||
--- a/go/src/go/types/scope.go
|
||||
+++ b/go/src/go/types/scope.go
|
||||
--- a/src/go/types/scope.go
|
||||
+++ b/src/go/types/scope.go
|
||||
@@ -25,6 +25,7 @@ type Scope struct {
|
||||
children []*Scope
|
||||
number int // parent.children[number-1] is this scope; 0 if there is no parent
|
||||
|
||||
Reference in New Issue
Block a user