Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 202 for importpath (0.21 sec)

  1. src/cmd/go/testdata/script/issue53586.txt

    go mod init example
    
    cd subdir
    go mod init example/subdir
    sleep 2s  # allow go.mod mtime to be cached
    
    go list -f '{{.Dir}}: {{.ImportPath}}' ./pkg
    stdout $PWD${/}pkg': example/subdir/pkg$'
    
    rm go.mod  # expose ../go.mod
    
    go list -f '{{.Dir}}: {{.ImportPath}}' ./pkg
    stdout $PWD${/}pkg': example/subdir/pkg$'
    
    -- subdir/pkg/pkg.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 30 18:20:39 UTC 2022
    - 394 bytes
    - Viewed (0)
  2. src/go/internal/srcimporter/srcimporter.go

    	}
    
    	// package unsafe is known to the type checker
    	if bp.ImportPath == "unsafe" {
    		return types.Unsafe, nil
    	}
    
    	// no need to re-import if the package was imported completely before
    	pkg := p.packages[bp.ImportPath]
    	if pkg != nil {
    		if pkg == &importing {
    			return nil, fmt.Errorf("import cycle through package %q", bp.ImportPath)
    		}
    		if !pkg.Complete() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 18:54:32 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modload/import.go

    	}
    	return message + hint
    }
    
    func (e *ImportMissingSumError) ImportPath() string {
    	return e.importPath
    }
    
    type invalidImportError struct {
    	importPath string
    	err        error
    }
    
    func (e *invalidImportError) ImportPath() string {
    	return e.importPath
    }
    
    func (e *invalidImportError) Error() string {
    	return e.err.Error()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:21:14 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  4. src/cmd/go/internal/load/test.go

    			pxtestErr = err
    		}
    		if p1.Incomplete {
    			pxtestIncomplete = true
    		}
    		if p1.ImportPath == p.ImportPath {
    			pxtestNeedsPtest = true
    		} else {
    			ximports = append(ximports, p1)
    		}
    		p.XTestImports[i] = p1.ImportPath
    	}
    	p.XTestEmbedFiles, xtestEmbed, err = resolveEmbed(p.Dir, p.XTestEmbedPatterns)
    	if err != nil && pxtestErr == nil {
    		pxtestErr = &PackageError{
    			ImportStack: stk.Copy(),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/mod_sum_issue56222.txt

    # checksums needed to run 'go test all'.
    cd m1
    go mod tidy
    
    go list -f '{{if eq .ImportPath "example.com/generics"}}{{.Module.GoVersion}}{{end}}' -deps -test example.com/m2/q
    stdout 1.18
    [!short] go test -o $devnull -c all
    
    cat go.sum
    replace 'example.com/generics v1.0.0/go.mod' 'example.com/notgenerics v1.0.0/go.mod' go.sum
    
    ! go list -f '{{if eq .ImportPath "example.com/generics"}}{{.Module.GoVersion}}{{end}}' -deps -test example.com/m2/q
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 12 13:58:58 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  6. src/cmd/go/internal/vcs/vcs.go

    	}
    	return rr, err
    }
    
    var errUnknownSite = errors.New("dynamic lookup required to find mapping")
    
    // repoRootFromVCSPaths attempts to map importPath to a repoRoot
    // using the mappings defined in vcsPaths.
    func repoRootFromVCSPaths(importPath string, security web.SecurityMode, vcsPaths []*vcsPath) (*RepoRoot, error) {
    	if str.HasPathPrefix(importPath, "example.net") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:18 UTC 2024
    - 46.2K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/list_importmap.txt

    go list -f '{{.ImportPath}}: {{.ImportMap}}' fmt a/b
    stdout 'fmt: map\[\]'
    stdout 'a/b: map\[c/d:a/vendor/c/d\]'
    
    # flag [fmt.test] should import fmt [fmt.test] as fmt
    # fmt.test should import testing [fmt.test] as testing
    # fmt.test should not import a modified os
    go list -deps -test -f '{{.ImportPath}} MAP: {{.ImportMap}}{{"\n"}}{{.ImportPath}} IMPORT: {{.Imports}}' fmt
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 956 bytes
    - Viewed (0)
  8. src/go/doc/comment/print.go

    // using baseURL as a prefix for links to other packages.
    //
    // The possible forms returned by DefaultURL are:
    //   - baseURL/ImportPath, for a link to another package
    //   - baseURL/ImportPath#Name, for a link to a const, func, type, or var in another package
    //   - baseURL/ImportPath#Recv.Name, for a link to a method in another package
    //   - #Name, for a link to a const, func, type, or var in this package
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  9. src/cmd/doc/dirs.go

    				next = append(next, filepath.Join(dir, name))
    			}
    			if hasGoFiles {
    				// It's a candidate.
    				importPath := root.importPath
    				if len(dir) > len(root.dir) {
    					if importPath != "" {
    						importPath += "/"
    					}
    					importPath += filepath.ToSlash(dir[len(root.dir)+1:])
    				}
    				d.scan <- Dir{importPath, dir, root.inModule}
    			}
    		}
    
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 17:49:12 UTC 2022
    - 9K bytes
    - Viewed (0)
  10. cmd/dependencycheck/dependencycheck.go

    	restrict = flag.String("restrict", "", "restricted dependencies regex pattern (e.g. '^k8s.io/(apimachinery|client-go)/')")
    )
    
    type goPackage struct {
    	Name         string
    	ImportPath   string
    	Imports      []string
    	TestImports  []string
    	XTestImports []string
    }
    
    func main() {
    	flag.Parse()
    
    	args := flag.Args()
    
    	if len(args) != 1 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 01 05:59:41 UTC 2022
    - 3K bytes
    - Viewed (0)
Back to top