Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for PathPrefix (0.9 sec)

  1. src/cmd/go/internal/modfetch/coderepo.go

    	if codeRoot != path {
    		if !hasPathPrefix(pathPrefix, codeRoot) {
    			return nil, fmt.Errorf("repository rooted at %s cannot contain module %s", codeRoot, path)
    		}
    		codeDir = strings.Trim(pathPrefix[len(codeRoot):], "/")
    	}
    
    	r := &codeRepo{
    		modPath:     path,
    		code:        code,
    		codeRoot:    codeRoot,
    		codeDir:     codeDir,
    		pathPrefix:  pathPrefix,
    		pathMajor:   pathMajor,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:50:24 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modload/search.go

    		}
    	}
    
    	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
    	}
    
    	for _, mod := range modules {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:15 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  3. src/cmd/go/internal/vcs/vcs.go

    	}
    	for _, srv := range vcsPaths {
    		if !str.HasPathPrefix(importPath, srv.pathPrefix) {
    			continue
    		}
    		m := srv.regexp.FindStringSubmatch(importPath)
    		if m == nil {
    			if srv.pathPrefix != "" {
    				return nil, importErrorf(importPath, "invalid %s import path %q", srv.pathPrefix, importPath)
    			}
    			continue
    		}
    
    		// Build map of named subexpression matches for expand.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:18 UTC 2024
    - 46.2K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modload/init.go

    	// modRoot maps each module in versions to its absolute filesystem path.
    	modRoot map[module.Version]string
    
    	// pathPrefix is the path prefix for packages in the module, without a trailing
    	// slash. For most modules, pathPrefix is just version.Path, but the
    	// standard-library module "std" has an empty prefix.
    	pathPrefix map[module.Version]string
    
    	// inGorootSrc caches whether modRoot is within GOROOT/src.
    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/modload/load.go

    	for _, v := range mms.Versions() {
    		modRoot := mms.ModRoot(v)
    		if dir == modRoot {
    			return mms.PathPrefix(v), v
    		}
    		if str.HasFilePathPrefix(dir, modRoot) {
    			pathPrefix := MainModules.PathPrefix(v)
    			if pathPrefix > longestPrefix {
    				longestPrefix = pathPrefix
    				longestPrefixVersion = v
    				suffix := filepath.ToSlash(str.TrimFilePathPrefix(dir, modRoot))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 84K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modload/import.go

    		for _, mainModule := range MainModules.Versions() {
    			if MainModules.InGorootSrc(mainModule) {
    				if dir, ok, err := dirInModule(path, MainModules.PathPrefix(mainModule), MainModules.ModRoot(mainModule), true); err != nil {
    					return module.Version{}, MainModules.ModRoot(mainModule), dir, nil, err
    				} else if ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:21:14 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modload/query.go

    		}
    	} else {
    		match = func(mod module.Version, roots []string, isLocal bool) *search.Match {
    			m := search.NewMatch(pattern)
    			prefix := mod.Path
    			if MainModules.Contains(mod.Path) {
    				prefix = MainModules.PathPrefix(module.Version{Path: mod.Path})
    			}
    			for _, root := range roots {
    				if _, ok, err := dirInModule(pattern, prefix, root, isLocal); err != nil {
    					m.AddError(err)
    				} else if ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 11 22:29:11 UTC 2023
    - 44.7K bytes
    - Viewed (0)
Back to top