Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for LoadImportWithFlags (0.13 sec)

  1. src/cmd/go/internal/work/action.go

    	a := b.cacheAction("vet", p, func() *Action {
    		a1 := b.CompileAction(mode|ModeVetOnly, depMode, p)
    
    		// vet expects to be able to import "fmt".
    		var stk load.ImportStack
    		stk.Push("vet")
    		p1, err := load.LoadImportWithFlags("fmt", p.Dir, p, &stk, nil, 0)
    		if err != nil {
    			base.Fatalf("unexpected error loading fmt package from package %s: %v", p.ImportPath, err)
    		}
    		stk.Pop()
    		aFmt := b.CompileAction(ModeBuild, depMode, p1)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:39:17 UTC 2024
    - 32.7K bytes
    - Viewed (0)
Back to top