You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Handle BuildContexts where one or more parts are "all".
These should only occur when searching for a matching Documentation,
not sorting. (Because we sort only when there is more than one
Documentation, and if there is an all/all Documentation then there
aren't any others.)
For golang/go#37232
Change-Id: I898aba8f73d2682798d56c47cc6773709f10c702
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/290094
Trust: Jonathan Amsterdam <[email protected]>
Run-TryBot: Jonathan Amsterdam <[email protected]>
TryBot-Result: kokoro <[email protected]>
Reviewed-by: Julie Qiu <[email protected]>
@@ -527,6 +543,8 @@ var moduleDocTest = &testModule{
527
543
Path: "doc.test/permalink",
528
544
},
529
545
Documentation: []*internal.Documentation{{
546
+
GOOS: internal.All,
547
+
GOARCH: internal.All,
530
548
Synopsis: "Package permalink is for testing the heading permalink documentation rendering feature.",
531
549
}},
532
550
},
@@ -566,6 +584,8 @@ var moduleDocTooLarge = &testModule{
566
584
Path: "bigdoc.test",
567
585
},
568
586
Documentation: []*internal.Documentation{{
587
+
GOOS: internal.All,
588
+
GOARCH: internal.All,
569
589
Synopsis: "This documentation is big.",
570
590
}},
571
591
},
@@ -674,6 +694,8 @@ var moduleStd = &testModule{
674
694
Path: "builtin",
675
695
},
676
696
Documentation: []*internal.Documentation{{
697
+
GOOS: internal.All,
698
+
GOARCH: internal.All,
677
699
Synopsis: "Package builtin provides documentation for Go's predeclared identifiers.",
678
700
}},
679
701
},
@@ -720,6 +742,8 @@ var moduleStd = &testModule{
720
742
Path: "context",
721
743
},
722
744
Documentation: []*internal.Documentation{{
745
+
GOOS: internal.All,
746
+
GOARCH: internal.All,
723
747
Synopsis: "Package context defines the Context type, which carries deadlines, cancelation signals, and other request-scoped values across API boundaries and between processes.",
0 commit comments