- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for PathMajorPrefix (0.12 sec)
-
src/cmd/vendor/golang.org/x/mod/module/module.go
} } // PathMajorPrefix returns the major-version tag prefix implied by pathMajor. // An empty PathMajorPrefix allows either v0 or v1. // // Note that [MatchPathMajor] may accept some versions that do not actually begin // with this prefix: namely, it accepts a 'v0.0.0-' prefix for a '.v1' // pathMajor, even though that pathMajor implies 'v1' tagging. func PathMajorPrefix(pathMajor string) string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 09 20:17:07 UTC 2024 - 26.9K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/coderepo.go
} pathPrefix, pathMajor, ok := module.SplitPathVersion(path) if !ok { return nil, fmt.Errorf("invalid module path %q", path) } if codeRoot == path { pathPrefix = path } pseudoMajor := module.PathMajorPrefix(pathMajor) // Compute codeDir = bar, the subdirectory within the repo // corresponding to the module root. // // At this point we might have: // path = github.com/rsc/foo/bar/v2
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:50:24 UTC 2024 - 38.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/modfile/rule.go
Version: vers, Err: fmt.Errorf("must be of the form v1.2.3"), } } return &module.InvalidVersionError{ Version: vers, Err: fmt.Errorf("must be of the form %s.2.3", module.PathMajorPrefix(pathMajor)), } } if pathMajorOk { if err := module.CheckPathMajor(vers, pathMajor); err != nil { if pathMajor == "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 18:34:56 UTC 2024 - 46.5K bytes - Viewed (0)