Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for readTime (6.17 sec)

  1. src/cmd/go/internal/cache/default.go

    	defaultOnce.Do(initDefaultCache)
    	return defaultCache
    }
    
    var (
    	defaultOnce  sync.Once
    	defaultCache Cache
    )
    
    // cacheREADME is a message stored in a README in the cache directory.
    // Because the cache lives outside the normal Go trees, we leave the
    // README as a courtesy to explain where it came from.
    const cacheREADME = `This directory holds cached build artifacts from the Go build system.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modfetch/fetch.go

    		dir, err := download(ctx, mod)
    		if err != nil {
    			return "", err
    		}
    		checkMod(ctx, mod)
    
    		// If go.mod exists (not an old legacy module), check version is not too new.
    		if data, err := os.ReadFile(filepath.Join(dir, "go.mod")); err == nil {
    			goVersion := gover.GoModLookup(data, "go")
    			if gover.Compare(goVersion, gover.Local()) > 0 {
    				return "", &gover.TooNewError{What: mod.String(), GoVersion: goVersion}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modload/init.go

    		}
    	}
    
    	// Look for Godeps.json declaring import path.
    	data, _ := os.ReadFile(filepath.Join(dir, "Godeps/Godeps.json"))
    	var cfg1 struct{ ImportPath string }
    	json.Unmarshal(data, &cfg1)
    	if cfg1.ImportPath != "" {
    		return cfg1.ImportPath, nil
    	}
    
    	// Look for vendor.json declaring import path.
    	data, _ = os.ReadFile(filepath.Join(dir, "vendor/vendor.json"))
    	var cfg2 struct{ RootPath string }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
  4. src/cmd/go/internal/envcmd/env.go

    func readEnvFileLines(mustExist bool) []string {
    	file, _, err := cfg.EnvFile()
    	if file == "" {
    		if mustExist {
    			base.Fatalf("go: cannot find go env config: %v", err)
    		}
    		return nil
    	}
    	data, err := os.ReadFile(file)
    	if err != nil && (!os.IsNotExist(err) || mustExist) {
    		base.Fatalf("go: reading go env config: %v", err)
    	}
    	lines := strings.SplitAfter(string(data), "\n")
    	if lines[len(lines)-1] == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  5. src/cmd/go/internal/load/pkg.go

    )
    
    // goModPath returns the module path in the go.mod in dir, if any.
    func goModPath(dir string) (path string) {
    	return goModPathCache.Do(dir, func() string {
    		data, err := os.ReadFile(filepath.Join(dir, "go.mod"))
    		if err != nil {
    			return ""
    		}
    		var i int
    		if bytes.HasPrefix(data, modulePrefix[1:]) {
    			i = 0
    		} else {
    			i = bytes.Index(data, modulePrefix)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  6. src/cmd/go/internal/test/test.go

    func (c *runCache) saveOutput(a *work.Action) {
    	if c.id1 == (cache.ActionID{}) && c.id2 == (cache.ActionID{}) {
    		return
    	}
    
    	// See comment about two-level lookup in tryCacheWithID above.
    	testlog, err := os.ReadFile(a.Objdir + "testlog.txt")
    	if err != nil || !bytes.HasPrefix(testlog, testlogMagic) || testlog[len(testlog)-1] != '\n' {
    		if cache.DebugTest {
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  7. src/cmd/dist/build.go

    		errprintf("cp %s %s\n", src, dst)
    	}
    	writefile(readfile(src), dst, flag)
    }
    
    // dopack copies the package src to dst,
    // appending the files listed in extra.
    // The archive format is the traditional Unix ar format.
    func dopack(dst, src string, extra []string) {
    	bdst := bytes.NewBufferString(readfile(src))
    	for _, file := range extra {
    		b := readfile(file)
    		// find last path element for archive member name
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  8. src/cmd/go/internal/work/buildid.go

    		}
    		exe = fields[0]
    		if !strings.ContainsAny(exe, `/\`) {
    			if lp, err := cfg.LookPath(exe); err == nil {
    				exe = lp
    			}
    		}
    		id, err = buildid.ReadFile(exe)
    		if err != nil {
    			return "", "", err
    		}
    
    		// If we can't find a build ID, use a hash.
    		if id == "" {
    			id = b.fileHash(exe)
    		}
    	}
    
    	b.id.Lock()
    	b.toolIDCache[key] = id
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:31:25 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssagen/abi.go

    // the symbol name and the third field is the ABI name, as one of the
    // named cmd/internal/obj.ABI constants.
    func (s *SymABIs) ReadSymABIs(file string) {
    	data, err := os.ReadFile(file)
    	if err != nil {
    		log.Fatalf("-symabis: %v", err)
    	}
    
    	for lineNum, line := range strings.Split(string(data), "\n") {
    		lineNum++ // 1-based
    		line = strings.TrimSpace(line)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  10. doc/README.md

    Dmitri Shuralyov <******@****.***> 1717615285 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 19:56:43 UTC 2024
    - 3.1K bytes
    - Viewed (0)
Back to top