- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 30 for MainModules (0.37 sec)
-
src/cmd/go/internal/modcmd/vendor.go
for _, pkg := range pkgs { m := modload.PackageModule(pkg) if m.Path == "" || modload.MainModules.Contains(m.Path) { continue } modpkgs[m] = append(modpkgs[m], pkg) } checkPathCollisions(modpkgs) includeAllReplacements := false includeGoVersions := false isExplicit := map[module.Version]bool{} gv := modload.MainModules.GoVersion()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 14 14:19:59 UTC 2024 - 14.5K bytes - Viewed (0) -
src/cmd/go/internal/modload/query.go
type PackageNotInModuleError struct { MainModules []module.Version Mod module.Version Replacement module.Version Query string Pattern string } func (e *PackageNotInModuleError) Error() string { if len(e.MainModules) > 0 { prefix := "workspace modules do" if len(e.MainModules) == 1 { prefix = fmt.Sprintf("main module (%s) does", e.MainModules[0])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 11 22:29:11 UTC 2023 - 44.7K bytes - Viewed (0) -
analysis/analysis-api-standalone/src/org/jetbrains/kotlin/analysis/project/structure/builder/KtModuleProviderBuilder.kt
public class KtModuleProviderBuilder( public val kotlinCoreProjectEnvironment: KotlinCoreProjectEnvironment, ) { private val mainModules: MutableList<KtModule> = mutableListOf() public fun <M : KtModule> addModule(module: M): M { mainModules.add(module) return module } public lateinit var platform: TargetPlatform public fun build(): KtStaticProjectStructureProvider {
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Fri Jan 05 16:04:14 UTC 2024 - 1.7K bytes - Viewed (0) -
src/cmd/go/internal/modload/search.go
continue } var ( root, modPrefix string isLocal bool ) if MainModules.Contains(mod.Path) { if MainModules.ModRoot(mod) == "" { continue // If there is no main module, we can't search in it. } root = MainModules.ModRoot(mod) modPrefix = MainModules.PathPrefix(mod) isLocal = true } else { var err error root, isLocal, err = fetch(ctx, mod)
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/modfile.go
if MainModules == nil { return module.Version{}, "", "" } else if MainModules.Contains(mod.Path) && mod.Version == "" { // Don't replace the workspace version of the main module. return module.Version{}, "", "" } if _, r, ok := replacement(mod, MainModules.WorkFileReplaceMap()); ok { return r, "", workFilePath } for _, v := range MainModules.Versions() {
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/init.go
replacedByWorkFile[r.Old.Path] = true v, ok := mainModules.highestReplaced[r.Old.Path] if !ok || gover.ModCompare(r.Old.Path, r.Old.Version, v) > 0 { mainModules.highestReplaced[r.Old.Path] = r.Old.Version } replacements[r.Old] = r.New } for i, m := range ms { mainModules.pathPrefix[m] = m.Path mainModules.modRoot[m] = rootDirs[i] mainModules.modFiles[m] = modFiles[i]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 18:36:30 UTC 2024 - 69.8K bytes - Viewed (0) -
cmd/dependencyverifier/dependencyverifier.go
first := parseModule(deps[0]) second := parseModule(deps[1]) if first.version == "" || first.version == "v0.0.0" { if !mainModules[first] { mainModules[first] = true mainModulesList = append(mainModulesList, first) } } modMap[first] = append(modMap[first], second) } else { // skip invalid line log.Printf("!!!invalid line in mod.graph: %s", line) continue } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Sep 07 01:48:30 UTC 2023 - 12.7K bytes - Viewed (0) -
src/cmd/go/internal/modload/import.go
for _, mainModule := range MainModules.Versions() { if MainModules.InGorootSrc(mainModule) { if dir, ok, err := dirInModule(path, MainModules.PathPrefix(mainModule), MainModules.ModRoot(mainModule), true); err != nil { return module.Version{}, MainModules.ModRoot(mainModule), dir, nil, err } else if ok { return mainModule, MainModules.ModRoot(mainModule), dir, nil, nil } } }
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/load/godebug.go
// list additional directives from the package under test. func defaultGODEBUG(p *Package, directives, testDirectives, xtestDirectives []build.Directive) string { if p.Name != "main" { return "" } goVersion := modload.MainModules.GoVersion() if modload.RootMode == modload.NoRoot && p.Module != nil { // This is go install pkg@version or go run pkg@version. // Use the Go version from the package. // If there isn't one, then assume Go 1.20,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 13:52:10 UTC 2024 - 3.1K bytes - Viewed (0) -
src/cmd/go/testdata/script/work_empty_panic_GOPATH.txt
# Regression test for https://go.dev/issue/58767: # with an empty go.work file in GOPATH mode, calls to load.defaultGODEBUG for a # package named "main" panicked in modload.MainModules.GoVersion. env GO111MODULE=off cd example go list example/m -- example/go.work -- go 1.21 -- example/m/main.go -- package main
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 28 18:50:18 UTC 2023 - 329 bytes - Viewed (0)