Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for RootNames (0.12 sec)

  1. src/cmd/link/internal/ld/inittask.go

    }
    
    // inittaskSym builds a symbol containing pointers to all the inittasks
    // that need to be run, given a list of root inittask symbols.
    func (ctxt *Link) inittaskSym(rootNames []string, symName string) loader.Sym {
    	ldr := ctxt.loader
    	var roots []loader.Sym
    	for _, n := range rootNames {
    		p := ldr.Lookup(n, 0)
    		if p != 0 {
    			roots = append(roots, p)
    		}
    	}
    	if len(roots) == 0 {
    		// Nothing to do
    		return 0
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 20:09:45 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. src/cmd/go/internal/vcs/vcs.go

    	}
    	return repoDir, vcsCmd, nil
    }
    
    // isVCSRoot identifies a VCS root by checking whether the directory contains
    // any of the listed root names.
    func isVCSRoot(dir string, rootNames []rootName) bool {
    	for _, root := range rootNames {
    		fi, err := os.Stat(filepath.Join(dir, root.filename))
    		if err == nil && fi.IsDir() == root.isDir {
    			return true
    		}
    	}
    
    	return false
    }
    
    type rootName struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:18 UTC 2024
    - 46.2K bytes
    - Viewed (0)
  3. src/cmd/go/internal/vcs/vcs_test.go

    // right VCS and repo directory.
    func TestFromDir(t *testing.T) {
    	tempDir := t.TempDir()
    
    	for _, vcs := range vcsList {
    		for r, root := range vcs.RootNames {
    			vcsName := fmt.Sprint(vcs.Name, r)
    			dir := filepath.Join(tempDir, "example.com", vcsName, root.filename)
    			if root.isDir {
    				err := os.MkdirAll(dir, 0755)
    				if err != nil {
    					t.Fatal(err)
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 03 15:33:59 UTC 2022
    - 17K bytes
    - Viewed (0)
Back to top