- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for inWorkspaceMode (0.22 sec)
-
src/cmd/go/internal/modload/vendor.go
} if !foundRequire { article := "" if inWorkspaceMode() { article = "a " } vendErrorf(mod, "is marked as explicit in vendor/modules.txt, but not explicitly required in %vgo.mod", article) } } } for _, mod := range vendorReplaced { r := Replacement(mod) replacementSource := "go.mod" if inWorkspaceMode() { replacementSource = "the workspace" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jul 24 18:09:22 UTC 2023 - 9.5K bytes - Viewed (0) -
src/cmd/go/internal/modload/init.go
if modRoot == "" { panic("vendor directory does not exist when in single module mode outside of a module") } return filepath.Join(modRoot, "vendor") } func inWorkspaceMode() bool { if !initialized { panic("inWorkspaceMode called before modload.Init called") } if !Enabled() { return false } return workFilePath != "" } // HasModRoot reports whether a main module is present.
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/modfile.go
// module versions. // // The caller must not modify the returned summary. 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" {
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/buildlist.go
} var graphRoots []module.Version if inWorkspaceMode() { graphRoots = roots } else { graphRoots = MainModules.Versions() } var ( mu sync.Mutex // guards mg.g and hasError during loading hasError bool mg = &ModuleGraph{ g: mvs.NewGraph(cmpVersion, graphRoots), } ) if pruning != workspace { if inWorkspaceMode() {
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/modload/import.go
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/modload/load.go
break } } if !found && search.InDir(absDir, cfg.GOROOTsrc) == "" && pathInModuleCache(ctx, absDir, rs) == "" { m.Dirs = []string{} scope := "main module or its selected dependencies" if inWorkspaceMode() { scope = "modules listed in go.work or their selected dependencies" } m.AddError(fmt.Errorf("directory prefix %s does not contain %s", base.ShortPath(absDir), scope)) return } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 14:56:56 UTC 2024 - 84K bytes - Viewed (0)