Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 35 of 35 for rootNode (0.12 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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