- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for LegacyGoMod (0.25 sec)
-
src/cmd/go/internal/modfetch/coderepo.go
return gomod, nil } data, err = r.code.ReadFile(ctx, rev, path.Join(dir, "go.mod"), codehost.MaxGoMod) if err != nil { if os.IsNotExist(err) { return LegacyGoMod(r.modPath), nil } return nil, err } return data, nil } // LegacyGoMod generates a fake go.mod file for a module that doesn't have one. // The go.mod file contains a module directive and nothing else: no go version, // no requirements. //
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/go/internal/modload/query.go
// and simpler. func versionHasGoMod(_ context.Context, m module.Version) (bool, error) { _, data, err := rawGoModData(m) if err != nil { return false, err } isFake := bytes.Equal(data, modfetch.LegacyGoMod(m.Path)) return !isFake, nil } // A versionRepo is a subset of modfetch.Repo that can report information about // available versions, but cannot fetch specific source files. type versionRepo interface {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 11 22:29:11 UTC 2023 - 44.7K bytes - Viewed (0)