Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for IsRevisionQuery (0.2 sec)

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

    }
    
    // IsRevisionQuery returns true if vers is a version query that may refer to
    // a particular version or revision in a repository like "v1.0.0", "master",
    // or "0123abcd". IsRevisionQuery returns false if vers is a query that
    // chooses from among available versions like "latest" or ">v1.0.0".
    func IsRevisionQuery(path, vers string) bool {
    	if vers == "latest" ||
    		vers == "upgrade" ||
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 11 22:29:11 UTC 2023
    - 44.7K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modload/list.go

    					// actually upgrading from.
    					// mgErr is already set, so just skip this module.
    					continue
    				}
    			}
    
    			allowed := CheckAllowed
    			if IsRevisionQuery(path, vers) || mode&ListRetracted != 0 {
    				// Allow excluded and retracted versions if the user asked for a
    				// specific revision or used 'go list -retracted'.
    				allowed = nil
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 22:43:50 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  3. src/cmd/go/internal/toolchain/select.go

    	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.
    		allowed = nil
    	}
    	noneSelected := func(path string) (version string) { return "none" }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:25:05 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  4. src/cmd/go/internal/load/pkg.go

    	// (first result). It's possible this module won't provide packages named by
    	// later arguments, and other modules would. Let's not try to be too
    	// magical though.
    	allowed := modload.CheckAllowed
    	if modload.IsRevisionQuery(firstPath, version) {
    		// Don't check for retractions if a specific revision is requested.
    		allowed = nil
    	}
    	noneSelected := func(path string) (version string) { return "none" }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
Back to top