Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for bigfile (1.51 sec)

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

    		}
    		defer unlock()
    
    		if err := downloadZip(ctx, mod, zipfile); err != nil {
    			return "", err
    		}
    		return zipfile, nil
    	})
    }
    
    func downloadZip(ctx context.Context, mod module.Version, zipfile string) (err error) {
    	ctx, span := trace.StartSpan(ctx, "modfetch.downloadZip "+zipfile)
    	defer span.Done()
    
    	// Double-check that the zipfile was not created while we were waiting for
    	// the lock in DownloadZip.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  2. src/cmd/dist/build.go

    	// go and gofmt and $GOOS_$GOARCH (target bin when cross-compiling).
    	binFiles, err := filepath.Glob(pathf("%s/bin/*", goroot))
    	if err != nil {
    		fatalf("glob: %v", err)
    	}
    
    	ok := map[string]bool{}
    	for _, f := range oldBinFiles {
    		ok[f] = true
    	}
    	for _, f := range binFiles {
    		if gohostos == "darwin" && filepath.Base(f) == ".DS_Store" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  3. src/cmd/go/internal/vcweb/script.go

    			return nil, err
    		})
    }
    
    func scriptModzip() script.Cmd {
    	return script.Command(
    		script.CmdUsage{
    			Summary: "create a Go module zip file from a directory",
    			Args:    "zipfile path@version dir",
    		},
    		func(st *script.State, args ...string) (wait script.WaitFunc, err error) {
    			if len(args) != 3 {
    				return nil, script.ErrUsage
    			}
    			zipPath := st.Path(args[0])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 08 19:37:03 UTC 2022
    - 9K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modfetch/codehost/git_test.go

    		if tt.repo == gitrepo1 {
    			for _, tt.repo = range altRepos() {
    				t.Run(path.Base(tt.repo)+"/"+tt.rev+"/"+tt.file, runTest(tt))
    			}
    		}
    	}
    }
    
    type zipFile struct {
    	name string
    	size int64
    }
    
    func TestReadZip(t *testing.T) {
    	t.Parallel()
    
    	type readZipTest struct {
    		repo   string
    		rev    string
    		subdir string
    		err    string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 19:46:23 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  5. src/cmd/go/internal/clean/clean.go

    			if len(subdirs) > 0 {
    				if err := sh.RemoveAll(subdirs...); err != nil && !printedErrors {
    					printedErrors = true
    					base.Error(err)
    				}
    			}
    
    			logFile := filepath.Join(dir, "log.txt")
    			if err := sh.RemoveAll(logFile); err != nil && !printedErrors {
    				printedErrors = true
    				base.Error(err)
    			}
    		}
    	}
    
    	if cleanTestcache && !cleanCache {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  6. src/cmd/go/internal/work/build_test.go

    		t.Skip("skipping: Chmod ignored ModeSetgid on " + runtime.GOOS)
    	}
    
    	pkgfile, err := os.CreateTemp("", "pkgfile")
    	if err != nil {
    		t.Fatalf("os.CreateTemp(\"\", \"pkgfile\"): %v", err)
    	}
    	defer os.Remove(pkgfile.Name())
    	defer pkgfile.Close()
    
    	dirGIDFile := filepath.Join(setgiddir, "setgid")
    	if err := sh.moveOrCopyFile(dirGIDFile, pkgfile.Name(), 0666, true); err != nil {
    		t.Fatalf("moveOrCopyFile: %v", err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 19:09:38 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modload/init.go

    			for _, m := range mg.BuildList() {
    				r := resolveReplacement(m)
    				if keepModSumsForZipSums {
    					keep[modkey(r)] = true // we need the go version from the go.mod file to do anything useful with the zipfile
    				}
    				keep[r] = true
    			}
    		}
    	}
    
    	return keep
    }
    
    type whichSums int8
    
    const (
    	loadedZipSumsOnly = whichSums(iota)
    	addBuildListZipSums
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
  8. src/cmd/go/internal/modfetch/codehost/svn.go

    		"--revision", rev,
    		"--", remotePath,
    		exportDir,
    	})
    	release()
    	if err != nil {
    		return err
    	}
    
    	// Scrape the exported files out of the filesystem and encode them in the zipfile.
    
    	// “All files in the zip file are expected to be
    	// nested in a single top-level directory, whose name is not specified.”
    	// We'll (arbitrarily) choose the base of the remote path.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 02:47:12 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  9. src/cmd/go/internal/modfetch/coderepo_test.go

    					f, err := os.CreateTemp(tmpdir, tt.version+".zip.")
    					if err != nil {
    						t.Fatalf("os.CreateTemp: %v", err)
    					}
    					zipfile := f.Name()
    					defer func() {
    						f.Close()
    						os.Remove(zipfile)
    					}()
    
    					var w io.Writer
    					var h hash.Hash
    					if needHash {
    						h = sha256.New()
    						w = io.MultiWriter(f, h)
    					} else {
    						w = f
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 18 20:10:14 UTC 2023
    - 29.4K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modfetch/coderepo.go

    	return modzip.Create(dst, module.Version{Path: r.modPath, Version: version}, files)
    }
    
    type zipFile struct {
    	name string
    	f    *zip.File
    }
    
    func (f zipFile) Path() string                 { return f.name }
    func (f zipFile) Lstat() (fs.FileInfo, error)  { return f.f.FileInfo(), nil }
    func (f zipFile) Open() (io.ReadCloser, error) { return f.f.Open() }
    
    type dataFile struct {
    	name string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:50:24 UTC 2024
    - 38.4K bytes
    - Viewed (0)
Back to top