If go list fails because it doesn't support the new flags added for Go 1.11 (which will be also released in Go 1.10.4) try again using the Loader to approximate the packages requested. This implementation is incomplete. It will never support test packages because of the two phase test loading process of the Loader. It also doesn't reliably have access to export data so it will always do an upgraded whole-program query. But we'll try to get the best level of support we can for the go/packages interface given the limitations of the loader. Once Go 1.12 is released, we'll delete this support. By then, most Go users should have at least switched to Go 1.10.4. Change-Id: I5248e20980032695a86b052caa9ff368ecf7b142 Reviewed-on: https://go-review.googlesource.com/125616 Reviewed-by: Ian Cottrell <iancottrell@google.com> |
||
|---|---|---|
| .. | ||
| ast/astutil | ||
| buildutil | ||
| callgraph | ||
| gccgoexportdata | ||
| gcexportdata | ||
| internal | ||
| loader | ||
| packages | ||
| pointer | ||
| ssa | ||
| types/typeutil | ||
| vcs | ||