Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 78 for Module (0.49 sec)

  1. src/cmd/go/internal/mvs/mvs.go

    	})
    	return min, nil
    }
    
    // UpgradeAll returns a build list for the target module
    // in which every module is upgraded to its latest version.
    func UpgradeAll(target module.Version, reqs UpgradeReqs) ([]module.Version, error) {
    	return buildList([]module.Version{target}, reqs, func(m module.Version) (module.Version, error) {
    		if m.Path == target.Path {
    			return target, nil
    		}
    
    		return reqs.Upgrade(m)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 21:58:12 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modload/query.go

    			// timestamp below any real timestamp. That way, if the main module is
    			// used from within some other module, the user will be able to upgrade
    			// the requirement to any real version they choose.
    			if _, pathMajor, ok := module.SplitPathVersion(path); ok && len(pathMajor) > 0 {
    				v = module.PseudoVersion(pathMajor[1:], "", time.Time{}, "000000000000")
    			} else {
    				v = module.PseudoVersion("v0", "", time.Time{}, "000000000000")
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 11 22:29:11 UTC 2023
    - 44.7K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modload/import.go

    	}
    
    	if e.newMissingVersion != "" {
    		return fmt.Sprintf("package %s provided by %s at latest version %s but not at required version %s", e.Path, e.Module.Path, e.Module.Version, e.newMissingVersion)
    	}
    
    	return fmt.Sprintf("missing module for import: %s@%s provides %s", e.Module.Path, e.Module.Version, e.Path)
    }
    
    func (e *ImportMissingError) Unwrap() error {
    	return e.QueryErr
    }
    
    func (e *ImportMissingError) ImportPath() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:21:14 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modcmd/download.go

    	"cmd/go/internal/modload"
    	"cmd/go/internal/toolchain"
    
    	"golang.org/x/mod/module"
    )
    
    var cmdDownload = &base.Command{
    	UsageLine: "go mod download [-x] [-json] [-reuse=old.json] [modules]",
    	Short:     "download modules to local cache",
    	Long: `
    Download downloads the named modules, which can be module patterns selecting
    dependencies of the main module or module queries of the form path@version.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 19:32:39 UTC 2023
    - 13.5K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modload/edit.go

    	// selectedRoot records the edited version (possibly "none") for each module
    	// path that would be a root in the edited requirements.
    	var selectedRoot map[string]string // module path → edited version
    	if rootPruning == pruned {
    		selectedRoot = maps.Clone(rs.maxRootVersion)
    	} else {
    		// In a module without graph pruning, modules that provide packages imported
    		// by the main module may either be explicit roots or implicit transitive
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 21:46:32 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  6. src/cmd/internal/moddeps/moddeps_test.go

    				break
    			}
    		}
    		sort.Slice(goroot.modules, func(i, j int) bool {
    			return goroot.modules[i].Dir < goroot.modules[j].Dir
    		})
    	})
    	if goroot.err != nil {
    		t.Fatal(goroot.err)
    	}
    	return goroot.modules
    }
    
    // goroot caches the list of modules found in the GOROOT source tree.
    var goroot struct {
    	once    sync.Once
    	modules []gorootModule
    	err     error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modfetch/fetch.go

    The download cannot be verified.
    
    For more information, see 'go help module-auth'.
    
    `
    
    var HelpModuleAuth = &base.Command{
    	UsageLine: "module-auth",
    	Short:     "module authentication using go.sum",
    	Long: `
    When the go command downloads a module zip file or go.mod file into the
    module cache, it computes a cryptographic hash and compares it with a known
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  8. src/cmd/go/internal/modcmd/vendor.go

    		base.Fatal(err)
    	}
    
    	modpkgs := make(map[module.Version][]string)
    	for _, pkg := range pkgs {
    		m := modload.PackageModule(pkg)
    		if m.Path == "" || modload.MainModules.Contains(m.Path) {
    			continue
    		}
    		modpkgs[m] = append(modpkgs[m], pkg)
    	}
    	checkPathCollisions(modpkgs)
    
    	includeAllReplacements := false
    	includeGoVersions := false
    	isExplicit := map[module.Version]bool{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 14:19:59 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  9. src/cmd/go/internal/workcmd/edit.go

    add and drop a use directive from the go.work file's set of module directories.
    
    The -replace=old[@v]=new[@v] flag adds a replacement of the given
    module path and version pair. If the @v in old@v is omitted, a
    replacement without a version on the left side is added, which applies
    to all versions of the old module path. If the @v in new@v is omitted,
    the new path should be a local module root directory, not a module
    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/modget/query.go

    	// matches the query pattern.
    	//
    	// We track this module separately from pkgMods because, all else equal, we
    	// prefer to match a query to a package rather than just a module. Also,
    	// unlike the modules in pkgMods, this module does not inherently exclude
    	// any other module in pkgMods.
    	mod module.Version
    
    	err error
    }
    
    // errSet returns a pathSet containing the given error.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 27 15:48:25 UTC 2023
    - 11.2K bytes
    - Viewed (0)
Back to top