- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for depsErrors (0.11 sec)
-
src/cmd/go/testdata/script/list_import_cycle_deps_errors.txt
go list -e -deps -json=ImportPath,Error,DepsErrors m/a cmp stdout want -- want -- { "ImportPath": "m/c", "DepsErrors": [ { "ImportStack": [ "m/a", "m/b", "m/c", "m/a" ], "Pos": "", "Err": "import cycle not allowed" } ] } { "ImportPath": "m/b", "DepsErrors": [ { "ImportStack": [ "m/a", "m/b", "m/c", "m/a" ], "Pos": "",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 11 19:18:27 UTC 2023 - 880 bytes - Viewed (0) -
src/cmd/go/testdata/script/list_issue_59905.txt
# Expect no panic go list -f '{{if .DepsErrors}}{{.DepsErrors}}{{end}}' -export -e -deps cmpenv stdout wanterr_59905 # Expect no panic (Issue 61816) cp level1b_61816.txt level1b/pkg.go go list -f '{{if .DepsErrors}}{{.DepsErrors}}{{end}}' -export -e -deps cmpenv stdout wanterr_61816 -- wanterr_59905 -- [# test/main/level1a level1a${/}pkg.go:5:2: level2x redeclared in this block level1a${/}pkg.go:4:2: other declaration of level2x
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 09 17:34:46 UTC 2023 - 2.1K bytes - Viewed (0) -
src/cmd/go/testdata/script/mod_list_bad_import.txt
cd example.com # Without -e, listing an otherwise-valid package with an unsatisfied direct import should fail. # BUG: Today it succeeds. go list -f '{{if .Error}}error{{end}} {{if .Incomplete}}incomplete{{end}} {{range .DepsErrors}}bad dep: {{.Err}}{{end}}' example.com/direct ! stdout ^error stdout 'incomplete' stdout 'bad dep: .*example.com/notfound' # Listing with -deps should also fail. ! go list -deps example.com/direct
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 06 18:54:25 UTC 2021 - 2.4K bytes - Viewed (0) -
src/cmd/go/internal/list/list.go
p.DepsErrors = make([]*load.PackageError, 0, len(depsErrors)) for deperr := range depsErrors { p.DepsErrors = append(p.DepsErrors, deperr) } // Sort packages by the package on the top of the stack, which should be // the package the error was produced for. Each package can have at most // one error set on it. sort.Slice(p.DepsErrors, func(i, j int) bool { stki, stkj := p.DepsErrors[i].ImportStack, p.DepsErrors[j].ImportStack
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 16:56:39 UTC 2024 - 33.3K bytes - Viewed (0) -
src/cmd/go/testdata/script/list_bad_import.txt
cd example.com # Without -e, listing an otherwise-valid package with an unsatisfied direct import should fail. # BUG: Today it succeeds. go list -f '{{if .Error}}error{{end}} {{if .Incomplete}}incomplete{{end}} {{range .DepsErrors}}bad dep: {{.Err}}{{end}}' example.com/direct ! stdout ^error stdout 'incomplete' stdout 'bad dep: .*example.com[/\\]notfound' # Listing with -deps should also fail. ! go list -deps example.com/direct
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 09 20:53:04 UTC 2020 - 2.1K bytes - Viewed (0) -
src/cmd/go/testdata/script/cmd_import_error.txt
# a clear error in module mode. ! go list cmd/unknown stderr '^package cmd/unknown is not in std \('$GOROOT'[/\\]src[/\\]cmd[/\\]unknown\)$' go list -f '{{range .DepsErrors}}{{.Err}}{{end}}' x.go stdout '^package cmd/unknown is not in std \('$GOROOT'[/\\]src[/\\]cmd[/\\]unknown\)$' -- x.go -- package x
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 15 16:24:01 UTC 2023 - 464 bytes - Viewed (0) -
src/cmd/go/internal/load/pkg.go
// Error information // Incomplete is above, packed into the other bools Error *PackageError `json:",omitempty"` // error loading this package (not dependencies) DepsErrors []*PackageError `json:",omitempty"` // errors loading dependencies, collected by go list before output // Test information // If you add to this list you MUST add to p.AllFiles (below) too.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 28 17:00:51 UTC 2024 - 120K bytes - Viewed (0) -
src/cmd/go/alldocs.go
// // // Error information // Incomplete bool // this package or a dependency has an error // Error *PackageError // error loading package // DepsErrors []*PackageError // errors loading dependencies // } // // Packages stored in vendor directories report an ImportPath that includes the // path to the vendor directory (for example, "d/vendor/p" instead of "p"),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 16:54:28 UTC 2024 - 142.4K bytes - Viewed (0)