Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for LoadImportWithFlags (0.26 sec)

  1. src/cmd/go/internal/load/pkg.go

    		}
    	}
    	return all
    }
    
    // LoadImportWithFlags loads the package with the given import path and
    // sets tool flags on that package. This function is useful loading implicit
    // dependencies (like sync/atomic for coverage).
    // TODO(jayconrod): delete this function and set flags automatically
    // in LoadImport instead.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  2. 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