- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for LoadModFile (0.25 sec)
-
src/cmd/go/internal/modload/import_test.go
defer func() { allowMissingModuleImports = oldAllowMissingModuleImports RootMode = oldRootMode }() allowMissingModuleImports = true RootMode = NoRoot ctx := context.Background() rs := LoadModFile(ctx) for _, tt := range importTests { t.Run(strings.ReplaceAll(tt.path, "/", "_"), func(t *testing.T) { // Note that there is no build list, so Import should always fail. m, err := queryImport(ctx, tt.path, rs)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 20 15:29:06 UTC 2022 - 2.2K bytes - Viewed (0) -
src/cmd/go/internal/modload/init.go
// // As a side-effect, LoadModFile may change cfg.BuildMod to "vendor" if // -mod wasn't set explicitly and automatic vendoring should be enabled. // // If LoadModFile or CreateModFile has already been called, LoadModFile returns // the existing in-memory requirements (rather than re-reading them from disk). // // LoadModFile checks the roots of the module graph for consistency with each
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 18:36:30 UTC 2024 - 69.8K bytes - Viewed (0) -
src/cmd/go/internal/modload/build.go
if isStandardImportPath(pkgpath) || !Enabled() { return nil } m, ok := findModule(loaded, pkgpath) if !ok { return nil } rs := LoadModFile(ctx) return moduleInfo(ctx, rs, m, 0, nil) } // PackageModRoot returns the module root directory for the module that provides // a given package. If modules are not enabled or if the package is in the
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/search.go
match := search.NewMatch(pattern) if m == (module.Version{}) { matchPackages(ctx, match, tags, includeStd, nil) } LoadModFile(ctx) // Sets Target, needed by fetch and matchPackages. if !match.IsLiteral() { matchPackages(ctx, match, tags, omitStd, []module.Version{m}) return match } root, isLocal, err := fetch(ctx, m)
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/list.go
reuse[module.Version{Path: m.Path, Version: m.Version}] = &m if m.Query != "" { reuse[module.Version{Path: m.Path, Version: m.Query}] = &m } } } rs, mods, err := listModules(ctx, LoadModFile(ctx), args, mode, reuse) type token struct{} sem := make(chan token, runtime.GOMAXPROCS(0)) if mode != 0 { for _, m := range mods { if m.Reuse { continue }
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/modload/buildlist.go
// requirements is the requirement graph for the main module. // // It is always non-nil if the main module's go.mod file has been loaded. // // This variable should only be read from the loadModFile function, and should // only be written in the loadModFile and commitRequirements functions. // All other functions that need or produce a *Requirements should // accept and/or return an explicit parameter. var requirements *Requirements
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 16:04:44 UTC 2024 - 53.8K bytes - Viewed (0) -
src/cmd/go/internal/modcmd/download.go
modload.ForceUseModules = true modload.ExplicitWriteGoMod = true haveExplicitArgs := len(args) > 0 if modload.HasModRoot() || modload.WorkFilePath() != "" { modload.LoadModFile(ctx) // to fill MainModules if haveExplicitArgs { for _, mainModule := range modload.MainModules.Versions() { targetAtUpgrade := mainModule.Path + "@upgrade" targetAtPatch := mainModule.Path + "@patch"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 19:32:39 UTC 2023 - 13.5K bytes - Viewed (0) -
src/cmd/go/internal/modload/load.go
} default: panic(fmt.Sprintf("internal error: modload missing case for pattern %s", m.Pattern())) } } } initialRS, err := loadModFile(ctx, &opts) if err != nil { base.Fatal(err) } ld := loadFromRoots(ctx, loaderParams{ PackageOpts: opts, requirements: initialRS, allPatternIsRoot: allPatternIsRoot,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 14:56:56 UTC 2024 - 84K bytes - Viewed (0) -
src/cmd/go/internal/list/list.go
if *listTest { base.Fatalf("go list -test cannot be used with -m") } if modload.Init(); !modload.Enabled() { base.Fatalf("go: list -m cannot be used with GO111MODULE=off") } modload.LoadModFile(ctx) // Sets cfg.BuildMod as a side-effect. if cfg.BuildMod == "vendor" { const actionDisabledFormat = "go: can't %s using the vendor directory\n\t(Use -mod=mod or -mod=readonly to bypass.)" if *listVersions {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 16:56:39 UTC 2024 - 33.3K bytes - Viewed (0) -
src/cmd/go/internal/modget/get.go
} } for _, match := range matches { for _, pkg := range match.Pkgs { m := modload.PackageModule(pkg) relevantMods[m] |= named } } } reqs := modload.LoadModFile(ctx) for m := range relevantMods { if reqs.IsDirect(m.Path) { relevantMods[m] |= direct } } // Load retractions for modules mentioned on the command line and modules
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 18:26:32 UTC 2024 - 66.5K bytes - Viewed (0)