Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for modRoots (0.11 sec)

  1. src/cmd/go/internal/modindex/read.go

    	}
    	if cfg.BuildMod == "vendor" {
    		// Even if the main module is in the module cache,
    		// its vendored dependencies are not loaded from their
    		// usual cached locations.
    		return nil, errNotFromModuleCache
    	}
    	modroot = filepath.Clean(modroot)
    	if str.HasFilePathPrefix(modroot, cfg.GOROOTsrc) || !str.HasFilePathPrefix(modroot, cfg.GOMODCACHE) {
    		return nil, errNotFromModuleCache
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modload/import.go

    					return module.Version{}, MainModules.ModRoot(mainModule), dir, nil, err
    				} else if ok {
    					return mainModule, MainModules.ModRoot(mainModule), dir, nil, nil
    				}
    			}
    		}
    		dir := filepath.Join(cfg.GOROOTsrc, path)
    		modroot = cfg.GOROOTsrc
    		if str.HasPathPrefix(path, "cmd") {
    			modroot = filepath.Join(cfg.GOROOTsrc, "cmd")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:21:14 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testplugin/plugin_test.go

    	os.Setenv("PWD", altRoot)
    	goCmd(nil, "build", "-buildmode=plugin", "-o", filepath.Join(modRoot, "plugin-mismatch.so"), "./plugin-mismatch")
    
    	os.Setenv("GOPATH", GOPATH)
    	if err := os.Chdir(modRoot); err != nil {
    		log.Panic(err)
    	} else {
    		prettyPrintf("cd %s\n", modRoot)
    	}
    	os.Setenv("PWD", modRoot)
    
    	os.Setenv("LD_LIBRARY_PATH", modRoot)
    
    	goCmd(nil, "build", "-buildmode=plugin", "./plugin1")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modload/build.go

    		}
    		if v, ok := rawGoVersion.Load(m); ok {
    			info.GoVersion = v.(string)
    		} else {
    			panic("internal error: GoVersion not set for main module")
    		}
    		if modRoot := MainModules.ModRoot(m); modRoot != "" {
    			info.Dir = modRoot
    			info.GoMod = modFilePath(modRoot)
    		}
    		return info
    	}
    
    	info := &modinfo.ModulePublic{
    		Path:     m.Path,
    		Version:  m.Version,
    		Indirect: rs != nil && !rs.direct[m.Path],
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 16:56:39 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top