- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for IsToolchain (0.24 sec)
-
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/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/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) -
src/cmd/go/internal/toolchain/select.go
} } if !strings.Contains(pkgArg, "@") || build.IsLocalImport(pkgArg) || filepath.IsAbs(pkgArg) { return false } path, version, _ := strings.Cut(pkgArg, "@") if path == "" || version == "" || gover.IsToolchain(path) { return false } if !modcacherwSeen && base.InGOFLAGS("-modcacherw") { fs := flag.NewFlagSet("goInstallVersion", flag.ExitOnError) fs.Var(modcacherwVal, "modcacherw", modcacherwFlag.Usage)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 17:25:05 UTC 2024 - 23.4K bytes - Viewed (0) -
src/cmd/go/internal/modload/import.go
// requirements in mg. for { var sumErrMods, altMods []module.Version for prefix := path; prefix != "."; prefix = pathpkg.Dir(prefix) { if gover.IsToolchain(prefix) { // Do not use the synthetic "go" module for "go/ast". continue } var ( v string ok bool ) if mg == nil { v, ok = rs.rootSelected(prefix) } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 15:21:14 UTC 2024 - 27.7K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/fetch.go
// local download cache and returns the name of the directory // corresponding to the root of the module's file tree. func Download(ctx context.Context, mod module.Version) (dir string, err error) { if gover.IsToolchain(mod.Path) { return "", ErrToolchain } if err := checkCacheDir(ctx); err != nil { base.Fatal(err) } // The par.Cache here avoids duplicate work. return downloadCache.Do(mod, func() (string, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 14:56:56 UTC 2024 - 30.3K bytes - Viewed (0)