Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for VendorDir (0.42 sec)

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

    }
    
    // readVendorList reads the list of vendored modules from vendor/modules.txt.
    func readVendorList(vendorDir string) {
    	vendorOnce.Do(func() {
    		vendorList = nil
    		vendorPkgModule = make(map[string]module.Version)
    		vendorVersion = make(map[string]string)
    		vendorMeta = make(map[module.Version]vendorMetadata)
    		vendorFile := filepath.Join(vendorDir, "modules.txt")
    		data, err := os.ReadFile(vendorFile)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 24 18:09:22 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modload/import.go

    					dirs = append(dirs, dir)
    					roots = append(roots, modRoot)
    				}
    			}
    		}
    
    		if HasModRoot() {
    			vendorDir := VendorDir()
    			dir, inVendorDir, _ := dirInModule(path, "", vendorDir, false)
    			if inVendorDir {
    				readVendorList(vendorDir)
    				// If vendorPkgModule does not contain an entry for path then it's probably either because
    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/internal/modload/search.go

    			if modRoot := MainModules.ModRoot(mod); modRoot != "" {
    				walkPkgs(modRoot, MainModules.PathPrefix(mod), pruneGoMod|pruneVendor)
    			}
    		}
    		if HasModRoot() {
    			walkPkgs(VendorDir(), "", pruneVendor)
    		}
    		return
    	}
    
    	for _, mod := range modules {
    		if gover.IsToolchain(mod.Path) || !treeCanMatch(mod.Path) {
    			continue
    		}
    
    		var (
    			root, modPrefix string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:15 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modload/init.go

    				goVersion = index.goVersion
    			}
    		}
    		vendorDir := ""
    		if workFilePath != "" {
    			vendorDir = filepath.Join(filepath.Dir(workFilePath), "vendor")
    		} else {
    			if len(modRoots) != 1 {
    				panic(fmt.Errorf("outside workspace mode, but have %v modRoots", modRoots))
    			}
    			vendorDir = filepath.Join(modRoots[0], "vendor")
    		}
    		if fi, err := fsys.Stat(vendorDir); err == nil && fi.IsDir() {
    			if goVersion != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modcmd/vendor.go

    	var vdir string
    	switch {
    	case filepath.IsAbs(vendorO):
    		vdir = vendorO
    	case vendorO != "":
    		vdir = filepath.Join(base.Cwd(), vendorO)
    	default:
    		vdir = filepath.Join(modload.VendorDir())
    	}
    	if err := os.RemoveAll(vdir); err != nil {
    		base.Fatal(err)
    	}
    
    	modpkgs := make(map[module.Version][]string)
    	for _, pkg := range pkgs {
    		m := modload.PackageModule(pkg)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 14:19:59 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modload/modfile.go

    	}
    	if gover.IsToolchain(m.Path) {
    		return rawGoModSummary(m)
    	}
    
    	if cfg.BuildMod == "vendor" {
    		summary := &modFileSummary{
    			module: module.Version{Path: m.Path},
    		}
    
    		readVendorList(VendorDir())
    		if vendorVersion[m.Path] != m.Version {
    			// This module is not vendored, so packages cannot be loaded from it and
    			// it cannot be relevant to the build.
    			return summary, nil
    		}
    
    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/load.go

    			if pkg, found := strings.CutPrefix(suffix, "vendor/"); found {
    				if cfg.BuildMod != "vendor" {
    					return "", fmt.Errorf("without -mod=vendor, directory %s has no package path", absDir)
    				}
    
    				readVendorList(VendorDir())
    				if _, ok := vendorPkgModule[pkg]; !ok {
    					return "", fmt.Errorf("directory %s is not a package listed in vendor/modules.txt", absDir)
    				}
    				return pkg, nil
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 84K bytes
    - Viewed (0)
  8. src/cmd/go/internal/work/exec.go

    					toPath = "GOPATH"
    				}
    			} else if m.Dir == "" {
    				// The module is in the vendor directory. Replace the entire vendor
    				// directory path, because the module's Dir is not filled in.
    				from = modload.VendorDir()
    				toPath = "vendor"
    			} else {
    				from = m.Dir
    				toPath = m.Path
    				if m.Version != "" {
    					toPath += "@" + m.Version
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
Back to top