Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 79 for kldload (0.13 sec)

  1. src/cmd/go/internal/workcmd/use.go

    	modload.ForceUseModules = true
    	modload.InitWorkfile()
    	gowork := modload.WorkFilePath()
    	if gowork == "" {
    		base.Fatalf("go: no go.work file found\n\t(run 'go work init' first or specify path using GOWORK environment variable)")
    	}
    	wf, err := modload.ReadWorkFile(gowork)
    	if err != nil {
    		base.Fatal(err)
    	}
    	workUse(ctx, gowork, wf, args)
    	modload.WriteWorkFile(gowork, wf)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 03 21:13:11 UTC 2023
    - 7K bytes
    - Viewed (0)
  2. 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)
  3. src/cmd/go/internal/modcmd/download.go

    }
    
    func runDownload(ctx context.Context, cmd *base.Command, args []string) {
    	modload.InitWorkfile()
    
    	// Check whether modules are enabled and whether we're in a module.
    	modload.ForceUseModules = true
    	modload.ExplicitWriteGoMod = true
    	haveExplicitArgs := len(args) > 0
    
    	if modload.HasModRoot() || modload.WorkFilePath() != "" {
    		modload.LoadModFile(ctx) // to fill MainModules
    
    		if haveExplicitArgs {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 19:32:39 UTC 2023
    - 13.5K 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/run/run.go

    		// Set global module flags for 'go run cmd@version'.
    		// 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("")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 19:09:38 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  6. src/cmd/go/internal/workcmd/vendor.go

    	cmdVendor.Flag.StringVar(&vendorO, "o", "", "")
    	base.AddChdirFlag(&cmdVendor.Flag)
    	base.AddModCommonFlags(&cmdVendor.Flag)
    }
    
    func runVendor(ctx context.Context, cmd *base.Command, args []string) {
    	modload.InitWorkfile()
    	if modload.WorkFilePath() == "" {
    		base.Fatalf("go: no go.work file found\n\t(run 'go work init' first or specify path using GOWORK environment variable)")
    	}
    
    	modcmd.RunVendor(ctx, vendorE, vendorO, args)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 24 18:09:22 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modcmd/init.go

    	if len(args) > 1 {
    		base.Fatalf("go: 'go mod init' accepts at most one argument")
    	}
    	var modPath string
    	if len(args) == 1 {
    		modPath = args[0]
    	}
    
    	modload.ForceUseModules = true
    	modload.CreateModFile(ctx, modPath) // does all the hard work
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 15:51:46 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top