Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for modRoots (0.23 sec)

  1. src/cmd/go/internal/modload/search.go

    			walkPkgs(filepath.Join(cfg.GOROOTsrc, "cmd"), "cmd", pruneGoMod)
    		}
    	}
    
    	if cfg.BuildMod == "vendor" {
    		for _, mod := range MainModules.Versions() {
    			if modRoot := MainModules.ModRoot(mod); modRoot != "" {
    				walkPkgs(modRoot, MainModules.PathPrefix(mod), pruneGoMod|pruneVendor)
    			}
    		}
    		if HasModRoot() {
    			walkPkgs(VendorDir(), "", pruneVendor)
    		}
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:15 UTC 2023
    - 7.9K 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/go/testdata/script/list_replace_absolute_windows.txt

    # Test a replacement with an absolute path (so the path isn't
    # cleaned by having filepath.Abs called on it). This checks
    # whether the modindex logic cleans the modroot path before using
    # it.
    
    [!GOOS:windows] skip
    [short] skip
    
    go run print_go_mod.go # use this program to write a go.mod with an absolute path
    cp stdout go.mod
    
    go list -modfile=go.mod all
    -- print_go_mod.go --
    //go:build ignore
    package main
    
    import (
        "fmt"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 693 bytes
    - Viewed (0)
  4. 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)
  5. src/cmd/go/internal/workcmd/sync.go

    	var goV string
    	for _, m := range mms.Versions() {
    		if mms.ModRoot(m) == "" && m.Path == "command-line-arguments" {
    			// This is not a real module.
    			// TODO(#49228): Remove this special case once the special
    			// command-line-arguments module is gone.
    			continue
    		}
    
    		// Use EnterModule to reset the global state in modload to be in
    		// single-module mode using the modroot of m.
    		modload.EnterModule(ctx, mms.ModRoot(m))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 03 21:13:11 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modload/modfile.go

    				modRoot := MainModules.ModRoot(v)
    				if foundModRoot != "" && foundFrom != from && found != r {
    					base.Errorf("conflicting replacements found for %v in workspace modules defined by %v and %v",
    						mod, modFilePath(foundModRoot), modFilePath(modRoot))
    					return found, foundModRoot, modFilePath(foundModRoot)
    				}
    				found, foundModRoot = r, modRoot
    			}
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 26 17:53:40 UTC 2023
    - 26.7K bytes
    - Viewed (0)
  7. 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)
  8. src/cmd/cgo/internal/testshared/shared_test.go

    func cloneTestdataModule(gopath string) (string, error) {
    	modRoot := filepath.Join(gopath, "src", "testshared")
    	if err := cgotest.OverlayDir(modRoot, "testdata"); err != nil {
    		return "", err
    	}
    	if err := os.WriteFile(filepath.Join(modRoot, "go.mod"), []byte("module testshared\n"), 0644); err != nil {
    		return "", err
    	}
    	return modRoot, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 26 01:54:41 UTC 2023
    - 36.3K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/build_trimpath.txt

    		log.Fatal(err)
    	}
    
    	if os.Getenv("GO111MODULE") == "on" {
    		out, err := exec.Command("go", "env", "GOMOD").Output()
    		if err != nil {
    			log.Fatal(err)
    		}
    		modRoot := filepath.Dir(strings.TrimSpace(string(out)))
    		check(data, "module root", modRoot)
    	} else {
    		check(data, "GOPATH", os.Getenv("GOPATH"))
    	}
    	check(data, "GOROOT", os.Getenv("GOROOT"))
    }
    
    func check(data []byte, desc, dir string) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testcshared/cshared_test.go

    		log.Panic(err)
    	}
    	defer os.RemoveAll(GOPATH)
    	os.Setenv("GOPATH", GOPATH)
    
    	modRoot := filepath.Join(GOPATH, "src", "testcshared")
    	if err := cgotest.OverlayDir(modRoot, "testdata"); err != nil {
    		log.Panic(err)
    	}
    	if err := os.Chdir(modRoot); err != nil {
    		log.Panic(err)
    	}
    	os.Setenv("PWD", modRoot)
    	if err := os.WriteFile("go.mod", []byte("module testcshared\n"), 0666); err != nil {
    		log.Panic(err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 21K bytes
    - Viewed (0)
Back to top