Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for versionOkForMainModule (0.24 sec)

  1. src/cmd/go/internal/modget/query.go

    	}
    
    	if q.pattern == "all" {
    		// If there is no main module, "all" is not meaningful.
    		if !modload.HasModRoot() {
    			return fmt.Errorf(`cannot match "all": %v`, modload.ErrNoModRoot)
    		}
    		if !versionOkForMainModule(q.version) {
    			// TODO(bcmills): "all@none" seems like a totally reasonable way to
    			// request that we remove all module requirements, leaving only the main
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 27 15:48:25 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modget/get.go

    				// This module is being removed, so it will no longer be in the build list
    				// (and thus will no longer match the pattern).
    				return pathSet{}
    			}
    
    			if modload.MainModules.Contains(curM.Path) && !versionOkForMainModule(q.version) {
    				if q.matchesPath(curM.Path) {
    					return errSet(&modload.QueryMatchesMainModulesError{
    						MainModules: []module.Version{curM},
    						Pattern:     q.pattern,
    						Query:       q.version,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 18:26:32 UTC 2024
    - 66.5K bytes
    - Viewed (0)
Back to top