aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/list_export_e.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/go/testdata/script/list_export_e.txt')
-rw-r--r--src/cmd/go/testdata/script/list_export_e.txt15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/cmd/go/testdata/script/list_export_e.txt b/src/cmd/go/testdata/script/list_export_e.txt
index f6992e221d..8e4c361fc4 100644
--- a/src/cmd/go/testdata/script/list_export_e.txt
+++ b/src/cmd/go/testdata/script/list_export_e.txt
@@ -1,6 +1,13 @@
-go list -e -export ./...
+! go list -export ./...
+stderr '^# example.com/p2\np2'${/}'main\.go:7:.*'
+! stderr '^go build '
+
+go list -f '{{with .Error}}{{.}}{{end}}' -e -export ./...
! stderr '.'
-go list -e -export -json ...
+stdout '^# example.com/p2\np2'${/}'main\.go:7:.*'
+
+go list -e -export -json=Error ./...
+stdout '"Err": "# example.com/p2'
-- go.mod --
module example.com
@@ -15,5 +22,5 @@ import "fmt"
import "example.com/p1"
func main() {
- fmt.Println(p1.Name == 5)
-} \ No newline at end of file
+ fmt.Println(p1.Name == 5)
+}