Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for kldload (0.19 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. src/cmd/go/internal/load/pkg.go

    // (replace, exclude).
    func PackagesAndErrorsOutsideModule(ctx context.Context, opts PackageOpts, args []string) ([]*Package, error) {
    	if !modload.ForceUseModules {
    		panic("modload.ForceUseModules must be true")
    	}
    	if modload.RootMode != modload.NoRoot {
    		panic("modload.RootMode must be NoRoot")
    	}
    
    	// Check that the arguments satisfy syntactic constraints.
    	var version string
    	var firstPath string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  8. src/cmd/go/main.go

    		vet.CmdVet,
    
    		help.HelpBuildConstraint,
    		help.HelpBuildmode,
    		help.HelpC,
    		help.HelpCache,
    		help.HelpEnvironment,
    		help.HelpFileType,
    		modload.HelpGoMod,
    		help.HelpGopath,
    		modfetch.HelpGoproxy,
    		help.HelpImportPath,
    		modload.HelpModules,
    		modfetch.HelpModuleAuth,
    		help.HelpPackages,
    		modfetch.HelpPrivate,
    		test.HelpTestflag,
    		test.HelpTestfunc,
    		modget.HelpVCS,
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:09:11 UTC 2024
    - 10K bytes
    - Viewed (0)
  9. src/cmd/go/internal/clean/clean.go

    	// either the flags and arguments explicitly imply a package,
    	// or no other target (such as a cache) was requested to be cleaned.
    	cleanPkg := len(args) > 0 || cleanI || cleanR
    	if (!modload.Enabled() || modload.HasModRoot()) &&
    		!cleanCache && !cleanModcache && !cleanTestcache && !cleanFuzzcache {
    		cleanPkg = true
    	}
    
    	if cleanPkg {
    		for _, pkg := range load.PackagesAndErrors(ctx, load.PackageOpts{}, args) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  10. src/cmd/go/internal/cfg/cfg.go

    	ExeSuffix = exeSuffix()
    
    	// ModulesEnabled specifies whether the go command is running
    	// in module-aware mode (as opposed to GOPATH mode).
    	// It is equal to modload.Enabled, but not all packages can import modload.
    	ModulesEnabled bool
    )
    
    func exeSuffix() string {
    	if Goos == "windows" {
    		return ".exe"
    	}
    	return ""
    }
    
    // Configuration for tools installed to GOROOT/bin.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.3K bytes
    - Viewed (0)
Back to top