"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/cmd/go/internal/vet/vet.go" between
go1.19.src.tar.gz and go1.19.1.src.tar.gz

About: Google’s Go is a compiled, garbage-collected, concurrent programming language.
Latest stable release (1.19).

vet.go  (go1.19.src):vet.go  (go1.19.1.src)
skipping to change at line 97 skipping to change at line 97
} }
} }
pkgOpts := load.PackageOpts{ModResolveTests: true} pkgOpts := load.PackageOpts{ModResolveTests: true}
pkgs := load.PackagesAndErrors(ctx, pkgOpts, pkgArgs) pkgs := load.PackagesAndErrors(ctx, pkgOpts, pkgArgs)
load.CheckPackageErrors(pkgs) load.CheckPackageErrors(pkgs)
if len(pkgs) == 0 { if len(pkgs) == 0 {
base.Fatalf("no packages to vet") base.Fatalf("no packages to vet")
} }
var b work.Builder b := work.NewBuilder("")
b.Init()
root := &work.Action{Mode: "go vet"} root := &work.Action{Mode: "go vet"}
for _, p := range pkgs { for _, p := range pkgs {
_, ptest, pxtest, err := load.TestPackagesFor(ctx, pkgOpts, p, ni l) _, ptest, pxtest, err := load.TestPackagesFor(ctx, pkgOpts, p, ni l)
if err != nil { if err != nil {
base.Errorf("%v", err) base.Errorf("%v", err)
continue continue
} }
if len(ptest.GoFiles) == 0 && len(ptest.CgoFiles) == 0 && pxtest == nil { if len(ptest.GoFiles) == 0 && len(ptest.CgoFiles) == 0 && pxtest == nil {
base.Errorf("go: can't vet %s: no Go files in %s", p.Impo rtPath, p.Dir) base.Errorf("go: can't vet %s: no Go files in %s", p.Impo rtPath, p.Dir)
 End of changes. 1 change blocks. 
2 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)