Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for MatchPrefixPatterns (0.24 sec)

  1. src/cmd/go/internal/modfetch/repo.go

    		return nil, errLookupDisabled
    	}
    
    	switch path {
    	case "go", "toolchain":
    		return &toolchainRepo{path, Lookup(ctx, proxy, "golang.org/toolchain")}, nil
    	}
    
    	if module.MatchPrefixPatterns(cfg.GONOPROXY, path) {
    		switch proxy {
    		case "noproxy", "direct":
    			return lookupDirect(ctx, path)
    		default:
    			return nil, errNoproxy
    		}
    	}
    
    	switch proxy {
    	case "off":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 16:36:19 UTC 2023
    - 15.2K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modfetch/sumdb.go

    		// so we don't make that exception.
    
    		// Otherwise, require the checksum database.
    		if must {
    			return true
    		}
    	}
    	return cfg.GOSUMDB != "off" && !module.MatchPrefixPatterns(cfg.GONOSUMDB, mod.Path)
    }
    
    // lookupSumDB returns the Go checksum database's go.sum lines for the given module,
    // along with the name of the database.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 20 15:02:47 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/mod/module/module.go

    			continue
    		}
    		if 'A' <= r && r <= 'Z' {
    			return "", false
    		}
    		buf = append(buf, byte(r))
    	}
    	if bang {
    		return "", false
    	}
    	return string(buf), true
    }
    
    // MatchPrefixPatterns reports whether any path prefix of target matches one of
    // the glob patterns (as defined by [path.Match]) in the comma-separated globs
    // list. This implements the algorithm used when matching a module path to the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 20:17:07 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  4. src/cmd/go/internal/vcs/vcs.go

    		case "private":
    			match = private
    		case "public":
    			match = !private
    		default:
    			// Note: rule.pattern is known to be comma-free,
    			// so MatchPrefixPatterns is only matching a single pattern for us.
    			match = module.MatchPrefixPatterns(rule.pattern, path)
    		}
    		if !match {
    			continue
    		}
    		for _, allow := range rule.allowed {
    			if allow == vcs || allow == "all" {
    				return true
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:18 UTC 2024
    - 46.2K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/mod/sumdb/client.go

    // usually from the environment variable).
    var ErrGONOSUMDB = errors.New("skipped (listed in GONOSUMDB)")
    
    func (c *Client) skip(target string) bool {
    	return module.MatchPrefixPatterns(c.nosumdb, target)
    }
    
    // Lookup returns the go.sum lines for the given module path and version.
    // The version may end in a /go.mod suffix, in which case Lookup returns
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 17:50:49 UTC 2024
    - 19.1K bytes
    - Viewed (0)
Back to top