- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for versionHasGoMod (0.26 sec)
-
src/cmd/go/internal/modload/query.go
} func (e *PackageNotInModuleError) ImportPath() string { if !strings.Contains(e.Pattern, "...") { return e.Pattern } return "" } // versionHasGoMod returns whether a version has a go.mod file. // // versionHasGoMod fetches the go.mod file (possibly a fake) and true if it // contains anything other than a module directive with the same path. When a
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/modfetch/coderepo.go
Origin: origin, List: list, } if len(incompatible) == 0 || r.pathMajor != "" { // No +incompatible versions are possible, so no need to check them. return versions, nil } versionHasGoMod := func(v string) (bool, error) { _, err := r.code.ReadFile(ctx, v, "go.mod", codehost.MaxGoMod) if err == nil { return true, nil } if !os.IsNotExist(err) { return false, &module.ModuleError{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:50:24 UTC 2024 - 38.4K bytes - Viewed (0)