Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for RepoRootForImportPath (0.37 sec)

  1. src/cmd/go/internal/vcs/vcs_test.go

    			},
    		},
    	}
    
    	for _, test := range tests {
    		got, err := RepoRootForImportPath(test.path, IgnoreMod, web.SecureOnly)
    		want := test.want
    
    		if want == nil {
    			if err == nil {
    				t.Errorf("RepoRootForImportPath(%q): Error expected but not received", test.path)
    			}
    			continue
    		}
    		if err != nil {
    			t.Errorf("RepoRootForImportPath(%q): %v", test.path, err)
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 03 15:33:59 UTC 2022
    - 17K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modfetch/repo.go

    )
    
    func lookupDirect(ctx context.Context, path string) (Repo, error) {
    	security := web.SecureOnly
    
    	if module.MatchPrefixPatterns(cfg.GOINSECURE, path) {
    		security = web.Insecure
    	}
    	rr, err := vcs.RepoRootForImportPath(path, vcs.PreferMod, security)
    	if err != nil {
    		// We don't know where to find code for a module with this path.
    		return nil, notExistError{err: err}
    	}
    
    	if rr.VCS.Name == "mod" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 16:36:19 UTC 2023
    - 15.2K bytes
    - Viewed (0)
  3. src/cmd/go/internal/vcs/vcs.go

    type ModuleMode int
    
    const (
    	IgnoreMod ModuleMode = iota
    	PreferMod
    )
    
    // RepoRootForImportPath analyzes importPath to determine the
    // version control system, and code repository to use.
    func RepoRootForImportPath(importPath string, mod ModuleMode, security web.SecurityMode) (*RepoRoot, error) {
    	rr, err := repoRootFromVCSPaths(importPath, security, vcsPaths)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:18 UTC 2024
    - 46.2K bytes
    - Viewed (0)
Back to top