Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for vendorPkgModule (0.15 sec)

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

    	vendorReplaced  []module.Version          // all replaced modules; may or may not also contribute packages
    	vendorVersion   map[string]string         // module path → selected version (if known)
    	vendorPkgModule map[string]module.Version // package → containing module
    	vendorMeta      map[module.Version]vendorMetadata
    )
    
    type vendorMetadata struct {
    	Explicit    bool
    	Replacement module.Version
    	GoVersion   string
    }
    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

    			if inVendorDir {
    				readVendorList(vendorDir)
    				// If vendorPkgModule does not contain an entry for path then it's probably either because
    				// vendor/modules.txt does not exist or the user manually added directories to the vendor directory.
    				// Go 1.23 and later require vendored packages to be present in modules.txt to be imported.
    				_, ok := vendorPkgModule[path]
    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/load.go

    				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
    			}
    
    			mainModulePrefix := MainModules.PathPrefix(mainModule)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 84K bytes
    - Viewed (0)
Back to top