summaryrefslogtreecommitdiff
path: root/fix_TestScript_list_std.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-05 02:18:27 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-05 02:18:27 +0000
commit84c1ee60a4e647e675dea9bb4653412c912b6e7d (patch)
tree4040bb756c366a599b470b858acbe639768202da /fix_TestScript_list_std.patch
parent47d013e07846a08e7b7faef56f19f2413b4692fa (diff)
automatic import of golangopeneuler24.03_LTS
Diffstat (limited to 'fix_TestScript_list_std.patch')
-rw-r--r--fix_TestScript_list_std.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/fix_TestScript_list_std.patch b/fix_TestScript_list_std.patch
new file mode 100644
index 0000000..ade3711
--- /dev/null
+++ b/fix_TestScript_list_std.patch
@@ -0,0 +1,13 @@
+diff --git a/src/cmd/go/testdata/script/list_std.txt b/src/cmd/go/testdata/script/list_std.txt
+index 6ab1bd1..4a00e43 100644
+--- a/src/cmd/go/testdata/script/list_std.txt
++++ b/src/cmd/go/testdata/script/list_std.txt
+@@ -6,7 +6,7 @@ env GO111MODULE=off
+ # Listing GOROOT should only find standard packages.
+ cd $GOROOT/src
+ go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}' ./...
+-! stdout .
++stdout _$GOROOT
+
+ # Standard packages should include cmd, but not cmd/vendor.
+ go list ./...