Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for kldload (0.28 sec)

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

    	}
    	modload.ForceUseModules = true
    	modload.RootMode = modload.NeedRoot
    
    	loadOpts := modload.PackageOpts{
    		Tags:                     imports.AnyTags(),
    		VendorModulesInGOROOTSrc: true,
    		ResolveMissingImports:    true,
    		UseVendorAll:             true,
    		AllowErrors:              vendorE,
    		SilenceMissingStdImports: true,
    	}
    	_, pkgs := modload.LoadPackages(ctx, loadOpts, "all")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 14:19:59 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  2. 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)
  3. src/cmd/go/internal/load/godebug.go

    func defaultGODEBUG(p *Package, directives, testDirectives, xtestDirectives []build.Directive) string {
    	if p.Name != "main" {
    		return ""
    	}
    	goVersion := modload.MainModules.GoVersion()
    	if modload.RootMode == modload.NoRoot && p.Module != nil {
    		// This is go install pkg@version or go run pkg@version.
    		// Use the Go version from the package.
    		// If there isn't one, then assume Go 1.20,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modget/get.go

    	}
    
    	newReqs := reqsFromGoMod(modload.ModFile())
    	r.reportChanges(oldReqs, newReqs)
    
    	if gowork := modload.FindGoWork(base.Cwd()); gowork != "" {
    		wf, err := modload.ReadWorkFile(gowork)
    		if err == nil && modload.UpdateWorkGoVersion(wf, modload.MainModules.GoVersion()) {
    			modload.WriteWorkFile(gowork, wf)
    		}
    	}
    }
    
    // parseArgs parses command-line arguments and reports errors.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 18:26:32 UTC 2024
    - 66.5K bytes
    - Viewed (0)
  5. src/cmd/go/internal/telemetrystats/telemetrystats.go

    	"cmd/go/internal/cfg"
    	"cmd/go/internal/modload"
    	"cmd/internal/telemetry"
    )
    
    func Increment() {
    	incrementConfig()
    	incrementVersionCounters()
    }
    
    // incrementConfig increments counters for the configuration
    // the command is running in.
    func incrementConfig() {
    	if !modload.WillBeEnabled() {
    		telemetry.Inc("go/mode:gopath")
    	} else if workfile := modload.FindGoWork(base.Cwd()); workfile != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:09:11 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modcmd/tidy.go

    	// 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",
    			GoVersion: goVersion,
    		})
    	}
    
    	modload.LoadPackages(ctx, modload.PackageOpts{
    		TidyGoVersion:            tidyGo.String(),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. src/cmd/go/internal/toolchain/select.go

    	// Set up modules without an explicit go.mod, to download go.mod.
    	modload.ForceUseModules = true
    	modload.RootMode = modload.NoRoot
    	modload.Init()
    	defer modload.Reset()
    
    	// See internal/load.PackagesAndErrorsOutsideModule
    	ctx := context.Background()
    	allowed := modload.CheckAllowed
    	if modload.IsRevisionQuery(path, version) {
    		// Don't check for retractions if a specific revision is requested.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:25:05 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  8. src/cmd/go/internal/workcmd/edit.go

    func flagEditworkUse(arg string) {
    	workedits = append(workedits, func(f *modfile.WorkFile) {
    		_, mf, err := modload.ReadModFile(filepath.Join(arg, "go.mod"), nil)
    		modulePath := ""
    		if err == nil {
    			modulePath = mf.Module.Mod.Path
    		}
    		f.AddUse(modload.ToDirectoryPath(arg), modulePath)
    		if err := f.AddUse(modload.ToDirectoryPath(arg), ""); err != nil {
    			base.Fatalf("go: -use=%s: %v", arg, err)
    		}
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. src/cmd/go/internal/list/list.go

    				}
    			}
    		}
    
    		var mode modload.ListMode
    		if *listU {
    			mode |= modload.ListU | modload.ListRetracted | modload.ListDeprecated
    		}
    		if *listRetracted {
    			mode |= modload.ListRetracted
    		}
    		if *listVersions {
    			mode |= modload.ListVersions
    			if *listRetracted {
    				mode |= modload.ListRetractedVersions
    			}
    		}
    		if *listReuse != "" && len(args) == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 16:56:39 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  10. src/cmd/go/internal/envcmd/env.go

    func ExtraEnvVars() []cfg.EnvVar {
    	gomod := ""
    	modload.Init()
    	if modload.HasModRoot() {
    		gomod = modload.ModFilePath()
    	} else if modload.Enabled() {
    		gomod = os.DevNull
    	}
    	modload.InitWorkfile()
    	gowork := modload.WorkFilePath()
    	// As a special case, if a user set off explicitly, report that in GOWORK.
    	if cfg.Getenv("GOWORK") == "off" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.6K bytes
    - Viewed (0)
Back to top