Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 331 for gomod (0.04 sec)

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

    stdout '"TagSum": "t1:47DEQpj8HBSa[+]/TImW[+]5JCeuQeRkm5NMpJWZG3hSuFU="'
    stdout '"Ref": "HEAD"'
    stdout '"Hash": "fc3a09f3dc5cfe0d7a743ea18f1f5226e68b3777"'
    ! stdout '"Dir"'
    ! stdout '"Info"'
    ! stdout '"GoMod"'
    ! stdout '"Zip"'
    
    # reuse go mod download vcstest/hello pseudoversion result
    go mod download -reuse=hellopseudo.json -x -json vcs-test.golang.org/git/hello.git@v0.0.0-20170922010558-fc3a09f3dc5c
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 22:10:38 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modfetch/coderepo_test.go

    				}
    
    				if tt.gomod != "" || tt.gomodErr != "" {
    					data, err := repo.GoMod(ctx, tt.version)
    					if err != nil && tt.gomodErr == "" {
    						t.Errorf("repo.GoMod(%q): %v", tt.version, err)
    					} else if err != nil && tt.gomodErr != "" {
    						if err.Error() != tt.gomodErr {
    							t.Errorf("repo.GoMod(%q): %v, want %q", tt.version, err, tt.gomodErr)
    						}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 18 20:10:14 UTC 2023
    - 29.4K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modload/build.go

    				m.GoVersion = summary.goVersion
    			}
    		}
    
    		if m.Version != "" {
    			if checksumOk("/go.mod") {
    				gomod, err := modfetch.CachePath(ctx, mod, "mod")
    				if err == nil {
    					if info, err := os.Stat(gomod); err == nil && info.Mode().IsRegular() {
    						m.GoMod = gomod
    					}
    				}
    				if gomodsum, ok := modfetch.RecordedSum(modkey(mod)); ok {
    					m.GoModSum = gomodsum
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 16:56:39 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modcmd/edit.go

    	}
    
    	if *editJSON && *editPrint {
    		base.Fatalf("go: cannot use both -json and -print")
    	}
    
    	if len(args) > 1 {
    		base.Fatalf("go: too many arguments")
    	}
    	var gomod string
    	if len(args) == 1 {
    		gomod = args[0]
    	} else {
    		gomod = modload.ModFilePath()
    	}
    
    	if *editModule != "" {
    		if err := module.CheckImportPath(*editModule); err != nil {
    			base.Fatalf("go: invalid -module: %v", err)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modfetch/cache.go

    	if err != nil {
    		return nil, "", err
    	}
    	return info, file, nil
    }
    
    // GoMod is like Lookup(ctx, path).GoMod(rev) but avoids the
    // repository path resolution in Lookup if the result is
    // already cached on local disk.
    func GoMod(ctx context.Context, path, rev string) ([]byte, error) {
    	// Convert commit hash to pseudo-version
    	// to increase cache hit rate.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modload/modfile.go

    )
    
    // ReadModFile reads and parses the mod file at gomod. ReadModFile properly applies the
    // overlay, locks the file while reading, and applies fix, if applicable.
    func ReadModFile(gomod string, fix modfile.VersionFixer) (data []byte, f *modfile.File, err error) {
    	gomod = base.ShortPath(gomod) // use short path in any errors
    	if gomodActual, ok := fsys.OverlayPath(gomod); ok {
    		// Don't lock go.mod if it's part of the overlay.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 26 17:53:40 UTC 2023
    - 26.7K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modfetch/repo.go

    	defer logCall("Repo[%s]: Latest()", l.r.ModulePath())()
    	return l.r.Latest(ctx)
    }
    
    func (l *loggingRepo) GoMod(ctx context.Context, version string) ([]byte, error) {
    	defer logCall("Repo[%s]: GoMod(%q)", l.r.ModulePath(), version)()
    	return l.r.GoMod(ctx, version)
    }
    
    func (l *loggingRepo) Zip(ctx context.Context, dst io.Writer, version string) error {
    	dstName := "_"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 16:36:19 UTC 2023
    - 15.2K bytes
    - Viewed (0)
  8. src/cmd/go/internal/envcmd/env.go

    	}
    	return ""
    }
    
    // ExtraEnvVars returns environment variables that should not leak into child processes.
    func ExtraEnvVars() []cfg.EnvVar {
    	gomod := ""
    	modload.Init()
    	if modload.HasModRoot() {
    		gomod = modload.ModFilePath()
    	} else if modload.Enabled() {
    		gomod = os.DevNull
    	}
    	modload.InitWorkfile()
    	gowork := modload.WorkFilePath()
    	// As a special case, if a user set off explicitly, report that in GOWORK.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  9. src/internal/testenv/testenv.go

    				if os.IsNotExist(err) {
    					dir = parent
    					continue
    				}
    				gorootErr = fmt.Errorf("finding GOROOT: %w", err)
    				return
    			}
    			goMod := string(b)
    
    			for goMod != "" {
    				var line string
    				line, goMod, _ = strings.Cut(goMod, "\n")
    				fields := strings.Fields(line)
    				if len(fields) >= 2 && fields[0] == "module" && fields[1] == "std" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:41:38 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modfetch/coderepo.go

    		// a bogus file for an invalid version.
    		_, err := r.Stat(ctx, version)
    		if err != nil {
    			return nil, err
    		}
    	}
    
    	rev, dir, gomod, err := r.findDir(ctx, version)
    	if err != nil {
    		return nil, err
    	}
    	if gomod != nil {
    		return gomod, nil
    	}
    	data, err = r.code.ReadFile(ctx, rev, path.Join(dir, "go.mod"), codehost.MaxGoMod)
    	if err != nil {
    		if os.IsNotExist(err) {
    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