Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for CheckAllowed (0.28 sec)

  1. src/cmd/go/internal/toolchain/select.go

    	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.
    		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)
  2. src/cmd/go/internal/modload/import.go

    	mg, err := rs.Graph(ctx)
    	if err != nil {
    		return module.Version{}, err
    	}
    
    	candidates, err := QueryPackages(ctx, path, "latest", mg.Selected, CheckAllowed)
    	if err != nil {
    		if errors.Is(err, fs.ErrNotExist) {
    			// Return "cannot find module providing package […]" instead of whatever
    			// low-level error QueryPattern produced.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:21:14 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modget/get.go

    		for _, qr := range results {
    			pkgMods = append(pkgMods, qr.Mod)
    		}
    	}
    	if modOnly != nil {
    		mod = modOnly.Mod
    	}
    	return pkgMods, mod, err
    }
    
    // checkAllowedOr is like modload.CheckAllowed, but it always allows the requested
    // and current versions (even if they are retracted or otherwise excluded).
    func (r *resolver) checkAllowedOr(requested string, selected func(string) string) modload.AllowedFunc {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 18:26:32 UTC 2024
    - 66.5K 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