- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for IsToolchain (0.13 sec)
-
src/cmd/go/internal/gover/mod.go
"golang.org/x/mod/semver" ) // IsToolchain reports whether the module path corresponds to the // virtual, non-downloadable module tracking go or toolchain directives in the go.mod file. // // Note that IsToolchain only matches "go" and "toolchain", not the // real, downloadable module "golang.org/toolchain" containing toolchain files. // // IsToolchain("go") = true // IsToolchain("toolchain") = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 06 19:18:46 UTC 2023 - 3.4K bytes - Viewed (0) -
src/cmd/go/internal/gover/mod_test.go
package gover import ( "slices" "strings" "testing" "golang.org/x/mod/module" ) func TestIsToolchain(t *testing.T) { test1(t, isToolchainTests, "IsToolchain", IsToolchain) } var isToolchainTests = []testCase1[string, bool]{ {"go", true}, {"toolchain", true}, {"anything", false}, {"golang.org/toolchain", false}, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 25 17:51:28 UTC 2023 - 2K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/cache.go
if err != nil { return "", err } return filepath.Join(cfg.GOMODCACHE, "cache/download", enc, "/@v"), nil } func CachePath(ctx context.Context, m module.Version, suffix string) (string, error) { if gover.IsToolchain(m.Path) { return "", ErrToolchain } dir, err := cacheDir(ctx, m.Path) if err != nil { return "", err } if !gover.ModIsValid(m.Path, m.Version) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 18:15:22 UTC 2024 - 24.7K bytes - Viewed (0) -
src/cmd/go/internal/modload/list.go
} // Module path or pattern. var match func(string) bool if arg == "all" { match = func(p string) bool { return !gover.IsToolchain(p) } } else if strings.Contains(arg, "...") { mp := pkgpattern.MatchPattern(arg) match = func(p string) bool { return mp(p) && !gover.IsToolchain(p) } } else { var v string if mg == nil { var ok bool v, ok = rs.rootSelected(arg) if !ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 17 22:43:50 UTC 2023 - 8.8K bytes - Viewed (0) -
src/cmd/go/internal/modcmd/verify.go
base.Errorf("%s", err) ok = false } } if ok { fmt.Printf("all modules verified\n") } } func verifyMod(ctx context.Context, mod module.Version) []error { if gover.IsToolchain(mod.Path) { // "go" and "toolchain" have no disk footprint; nothing to verify. return nil } if modload.MainModules.Contains(mod.Path) { return nil } var errs []error
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 16:56:35 UTC 2024 - 3.6K bytes - Viewed (0) -
src/cmd/go/internal/modget/query.go
func (q *query) matchesPath(path string) bool { if q.matchWildcard != nil && !gover.IsToolchain(path) { return q.matchWildcard(path) } return path == q.pattern } // canMatchInModule reports whether the given module path can potentially // contain q.pattern. func (q *query) canMatchInModule(mPath string) bool { if gover.IsToolchain(mPath) { return false } if q.canMatchWildcardInModule != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 27 15:48:25 UTC 2023 - 11.2K bytes - Viewed (0) -
src/cmd/go/internal/modload/search.go
} } if HasModRoot() { walkPkgs(VendorDir(), "", pruneVendor) } return } for _, mod := range modules { if gover.IsToolchain(mod.Path) || !treeCanMatch(mod.Path) { continue } var ( root, modPrefix string isLocal bool ) if MainModules.Contains(mod.Path) { if MainModules.ModRoot(mod) == "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 17:55:15 UTC 2023 - 7.9K bytes - Viewed (0) -
src/cmd/go/internal/modload/modfile.go
func goModSummary(m module.Version) (*modFileSummary, error) { if m.Version == "" && !inWorkspaceMode() && MainModules.Contains(m.Path) { panic("internal error: goModSummary called on a main module") } if gover.IsToolchain(m.Path) { return rawGoModSummary(m) } if cfg.BuildMod == "vendor" { summary := &modFileSummary{ module: module.Version{Path: m.Path}, } readVendorList(VendorDir())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 26 17:53:40 UTC 2023 - 26.7K bytes - Viewed (0) -
src/cmd/go/internal/modload/build.go
info.GoVersion = v.(string) } // completeFromModCache fills in the extra fields in m using the module cache. completeFromModCache := func(m *modinfo.ModulePublic) { if gover.IsToolchain(m.Path) { return } checksumOk := func(suffix string) bool { return rs == nil || m.Version == "" || !mustHaveSums() || modfetch.HaveSum(module.Version{Path: m.Path, Version: m.Version + suffix})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 16:56:39 UTC 2024 - 13.3K bytes - Viewed (0) -
src/cmd/go/internal/modload/query.go
// AllowedFunc of qm. func (qm *queryMatcher) allowsVersion(ctx context.Context, v string) bool { if qm.prefix != "" && !strings.HasPrefix(v, qm.prefix) { if gover.IsToolchain(qm.path) && strings.TrimSuffix(qm.prefix, ".") == v { // Allow 1.21 to match "1.21." prefix. } else { return false } } if qm.filter != nil && !qm.filter(v) { return false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 11 22:29:11 UTC 2023 - 44.7K bytes - Viewed (0)