Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 588 for gomod (0.06 sec)

  1. src/cmd/compile/internal/test/pgo_devirtualize_test.go

    	testenv.MustHaveGoRun(t)
    	t.Parallel()
    
    	const pkg = "example.com/pgo/devirtualize"
    
    	// Add a go.mod so we have a consistent symbol names in this temp dir.
    	goMod := fmt.Sprintf(`module %s
    go 1.21
    `, pkg)
    	if err := os.WriteFile(filepath.Join(dir, "go.mod"), []byte(goMod), 0644); err != nil {
    		t.Fatalf("error writing go.mod: %v", err)
    	}
    
    	// Run the test without PGO to ensure that the test assertions are
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 15 21:30:35 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  2. .github/ISSUE_TEMPLATE/00-bug.yml

            GOTOOLDIR="/usr/local/go/pkg/tool/darwin_arm64"
            GOVCS=""
            GOVERSION="go1.20.7"
            GCCGO="gccgo"
            AR="ar"
            CC="clang"
            CXX="clang++"
            CGO_ENABLED="1"
            GOMOD="/dev/null"
            GOWORK=""
            CGO_CFLAGS="-O2 -g"
            CGO_CPPFLAGS=""
            CGO_CXXFLAGS="-O2 -g"
            CGO_FFLAGS="-O2 -g"
            CGO_LDFLAGS="-O2 -g"
            PKG_CONFIG="pkg-config"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 04 23:31:17 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. src/cmd/go/internal/modinfo/info.go

    	Indirect   bool             `json:",omitempty"` // module is only indirectly needed by main module
    	Dir        string           `json:",omitempty"` // directory holding local copy of files, if any
    	GoMod      string           `json:",omitempty"` // path to go.mod file describing module, if any
    	GoVersion  string           `json:",omitempty"` // go version used in module
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modcmd/download.go

            Query    string // version query corresponding to this version
            Version  string // module version
            Error    string // error loading module
            Info     string // absolute path to cached .info file
            GoMod    string // absolute path to cached .mod file
            Zip      string // absolute path to cached .zip file
            Dir      string // absolute path to cached source root directory
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 19:32:39 UTC 2023
    - 13.5K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/test/pgo_inl_test.go

    	const pkg = "example.com/pgo/inline"
    
    	// Add a go.mod so we have a consistent symbol names in this temp dir.
    	goMod := fmt.Sprintf(`module %s
    go 1.19
    `, pkg)
    	if err := os.WriteFile(filepath.Join(dir, "go.mod"), []byte(goMod), 0644); err != nil {
    		t.Fatalf("error writing go.mod: %v", err)
    	}
    
    	exe := filepath.Join(dir, "test.exe")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  8. src/cmd/go/internal/modfetch/toolchain.go

    	}
    	var max string
    	for _, v := range versions.List {
    		if max == "" || gover.ModCompare(r.path, v, max) > 0 {
    			max = v
    		}
    	}
    	return r.Stat(ctx, max)
    }
    
    func (r *toolchainRepo) GoMod(ctx context.Context, version string) (data []byte, err error) {
    	return []byte("module " + r.path + "\n"), nil
    }
    
    func (r *toolchainRepo) Zip(ctx context.Context, dst io.Writer, version string) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 13 16:44:24 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  9. src/cmd/go/internal/modfetch/proxy.go

    	}
    	return info, nil
    }
    
    func (p *proxyRepo) GoMod(ctx context.Context, version string) ([]byte, error) {
    	if version != module.CanonicalVersion(version) {
    		return nil, p.versionError(version, fmt.Errorf("internal error: version passed to GoMod is not canonical"))
    	}
    
    	encVer, err := module.EscapeVersion(version)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 03 15:21:05 UTC 2023
    - 13K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/build_trimpath.txt

    )
    
    func main() {
    	exe := os.Args[1]
    	data, err := ioutil.ReadFile(exe)
    	if err != nil {
    		log.Fatal(err)
    	}
    
    	if os.Getenv("GO111MODULE") == "on" {
    		out, err := exec.Command("go", "env", "GOMOD").Output()
    		if err != nil {
    			log.Fatal(err)
    		}
    		modRoot := filepath.Dir(strings.TrimSpace(string(out)))
    		check(data, "module root", modRoot)
    	} else {
    		check(data, "GOPATH", os.Getenv("GOPATH"))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 4.9K bytes
    - Viewed (0)
Back to top