Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for VendorDir (0.13 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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