Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 40 for rootNode (0.31 sec)

  1. src/cmd/go/internal/modcmd/verify.go

    	modload.InitWorkfile()
    
    	if len(args) != 0 {
    		// NOTE(rsc): Could take a module pattern.
    		base.Fatalf("go: verify takes no arguments")
    	}
    	modload.ForceUseModules = true
    	modload.RootMode = modload.NeedRoot
    
    	// Only verify up to GOMAXPROCS zips at once.
    	type token struct{}
    	sem := make(chan token, runtime.GOMAXPROCS(0))
    
    	mg, err := modload.LoadModGraph(ctx, "")
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 16:56:35 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modcmd/why.go

    	base.AddChdirFlag(&cmdWhy.Flag)
    	base.AddModCommonFlags(&cmdWhy.Flag)
    }
    
    func runWhy(ctx context.Context, cmd *base.Command, args []string) {
    	modload.InitWorkfile()
    	modload.ForceUseModules = true
    	modload.RootMode = modload.NeedRoot
    	modload.ExplicitWriteGoMod = true // don't write go.mod in ListModules
    
    	loadOpts := modload.PackageOpts{
    		Tags:                     imports.AnyTags(),
    		VendorModulesInGOROOTSrc: true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 01 21:32:23 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modcmd/tidy.go

    	// that are in 'all' but outside of the main module, we must explicitly
    	// request that their test dependencies be included.
    	modload.ForceUseModules = true
    	modload.RootMode = modload.NeedRoot
    
    	goVersion := tidyGo.String()
    	if goVersion != "" && gover.Compare(gover.Local(), goVersion) < 0 {
    		toolchain.SwitchOrFatal(ctx, &gover.TooNewError{
    			What:      "-go flag",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. src/cmd/go/internal/load/pkg.go

    	}
    	rootMod := qrs[0].Mod
    	deprecation, err := modload.CheckDeprecation(ctx, rootMod)
    	if err != nil {
    		return nil, fmt.Errorf("%s: %w", args[0], err)
    	}
    	if deprecation != "" {
    		fmt.Fprintf(os.Stderr, "go: module %s is deprecated: %s\n", rootMod.Path, modload.ShortMessage(deprecation, ""))
    	}
    	data, err := modfetch.GoMod(ctx, rootMod.Path, rootMod.Version)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  5. src/internal/trace/traceviewer/static/trace_viewer_full.html

    addTreeValuesToHistogramSet(rootNode,histogramSet){const rootPath=[[],[],[]];this.rootNode_=rootNode;this.histogramSet_=histogramSet;this.reportDataFromTree_(this.rootNode_,rootPath);}
    static reportToHistogramSet(rootNode,histogramSet){const reporter=new CpuTimeTreeDataReporter();reporter.addTreeValuesToHistogramSet(rootNode,histogramSet);}}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:45:06 UTC 2023
    - 2.5M bytes
    - Viewed (1)
  6. src/cmd/go/internal/modload/init.go

    	"golang.org/x/mod/modfile"
    	"golang.org/x/mod/module"
    )
    
    // Variables set by other packages.
    //
    // TODO(#40775): See if these can be plumbed as explicit parameters.
    var (
    	// RootMode determines whether a module root is needed.
    	RootMode Root
    
    	// ForceUseModules may be set to force modules to be enabled when
    	// GO111MODULE=auto or to report an error when GO111MODULE=off.
    	ForceUseModules bool
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
  7. src/cmd/go/internal/run/run.go

    		// This must be done before modload.Init, but we need to call work.BuildInit
    		// before loading packages, since it affects package locations, e.g.,
    		// for -race and -msan.
    		modload.ForceUseModules = true
    		modload.RootMode = modload.NoRoot
    		modload.AllowMissingModuleImports()
    		modload.Init()
    	} else {
    		modload.InitWorkfile()
    	}
    
    	work.BuildInit()
    	b := work.NewBuilder("")
    	defer func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 19:09:38 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  8. src/cmd/go/internal/toolchain/select.go

    	if pathOnly {
    		base.Fatalf("cannot find %q in PATH", gotoolchain)
    	}
    
    	// Set up modules without an explicit go.mod, to download distribution.
    	modload.Reset()
    	modload.ForceUseModules = true
    	modload.RootMode = modload.NoRoot
    	modload.Init()
    
    	// Download and unpack toolchain module into module cache.
    	// Note that multiple go commands might be doing this at the same time,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:25:05 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  9. src/cmd/go/internal/modcmd/vendor.go

    }
    
    func RunVendor(ctx context.Context, vendorE bool, vendorO string, args []string) {
    	if len(args) != 0 {
    		base.Fatalf("go: 'go mod vendor' accepts no arguments")
    	}
    	modload.ForceUseModules = true
    	modload.RootMode = modload.NeedRoot
    
    	loadOpts := modload.PackageOpts{
    		Tags:                     imports.AnyTags(),
    		VendorModulesInGOROOTSrc: true,
    		ResolveMissingImports:    true,
    		UseVendorAll:             true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 14:19:59 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  10. src/cmd/go/internal/work/build.go

    // in the current directory or parent directories.
    //
    // See golang.org/issue/40276 for details and rationale.
    func installOutsideModule(ctx context.Context, args []string) {
    	modload.ForceUseModules = true
    	modload.RootMode = modload.NoRoot
    	modload.AllowMissingModuleImports()
    	modload.Init()
    	BuildInit()
    
    	// Load packages. Ignore non-main packages.
    	// Print a warning if an argument contains "..." and matches no main packages.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 17:22:59 UTC 2024
    - 33.2K bytes
    - Viewed (0)
Back to top