list.go (go1.19.src) | : | list.go (go1.19.1.src) | ||
---|---|---|---|---|
skipping to change at line 692 | skipping to change at line 692 | |||
// is alphabetical, same as listed in .Deps.) | // is alphabetical, same as listed in .Deps.) | |||
// Note that -deps is applied after -test, | // Note that -deps is applied after -test, | |||
// so that you only get descriptions of tests for the things name d | // so that you only get descriptions of tests for the things name d | |||
// explicitly on the command line, not for all dependencies. | // explicitly on the command line, not for all dependencies. | |||
pkgs = loadPackageList(pkgs) | pkgs = loadPackageList(pkgs) | |||
} | } | |||
// Do we need to run a build to gather information? | // Do we need to run a build to gather information? | |||
needStale := (listJson && listJsonFields.needAny("Stale", "StaleReason")) || strings.Contains(*listFmt, ".Stale") | needStale := (listJson && listJsonFields.needAny("Stale", "StaleReason")) || strings.Contains(*listFmt, ".Stale") | |||
if needStale || *listExport || *listCompiled { | if needStale || *listExport || *listCompiled { | |||
var b work.Builder | b := work.NewBuilder("") | |||
b.Init() | ||||
b.IsCmdList = true | b.IsCmdList = true | |||
b.NeedExport = *listExport | b.NeedExport = *listExport | |||
b.NeedCompiledGoFiles = *listCompiled | b.NeedCompiledGoFiles = *listCompiled | |||
a := &work.Action{} | a := &work.Action{} | |||
// TODO: Use pkgsFilter? | // TODO: Use pkgsFilter? | |||
for _, p := range pkgs { | for _, p := range pkgs { | |||
if len(p.GoFiles)+len(p.CgoFiles) > 0 { | if len(p.GoFiles)+len(p.CgoFiles) > 0 { | |||
a.Deps = append(a.Deps, b.AutoAction(work.ModeIns tall, work.ModeInstall, p)) | a.Deps = append(a.Deps, b.AutoAction(work.ModeIns tall, work.ModeInstall, p)) | |||
} | } | |||
} | } | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added |