Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for listModules (0.14 sec)

  1. src/cmd/go/internal/modload/list.go

    	ListRetracted
    	ListDeprecated
    	ListVersions
    	ListRetractedVersions
    )
    
    // ListModules returns a description of the modules matching args, if known,
    // along with any error preventing additional matches from being identified.
    //
    // The returned slice can be nonempty even if the error is non-nil.
    func ListModules(ctx context.Context, args []string, mode ListMode, reuseFile string) ([]*modinfo.ModulePublic, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 22:43:50 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modcmd/why.go

    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,
    		LoadTests:                !*whyVendor,
    		SilencePackageErrors:     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/download.go

    		base.Fatalf("go mod download -reuse cannot be used inside a module")
    	}
    
    	var mods []*ModuleJSON
    	type token struct{}
    	sem := make(chan token, runtime.GOMAXPROCS(0))
    	infos, infosErr := modload.ListModules(ctx, args, 0, *downloadReuse)
    
    	// There is a bit of a chicken-and-egg problem here: ideally we need to know
    	// which Go version to switch to to download the requested modules, but if we
    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/list/list.go

    				mode |= modload.ListRetractedVersions
    			}
    		}
    		if *listReuse != "" && len(args) == 0 {
    			base.Fatalf("go: list -m -reuse only has an effect with module@version arguments")
    		}
    		mods, err := modload.ListModules(ctx, args, mode, *listReuse)
    		if !*listE {
    			for _, m := range mods {
    				if m.Error != nil {
    					base.Error(errors.New(m.Error.Err))
    				}
    			}
    			if err != nil {
    				base.Error(err)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 16:56:39 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modload/init.go

    	// GO111MODULE=auto or to report an error when GO111MODULE=off.
    	ForceUseModules bool
    
    	allowMissingModuleImports bool
    
    	// ExplicitWriteGoMod prevents LoadPackages, ListModules, and other functions
    	// from updating go.mod and go.sum or reporting errors when updates are
    	// needed. A package should set this if it would cause go.mod to be written
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
Back to top