- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 588 for gomod (0.06 sec)
-
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) -
.github/ISSUE_TEMPLATE/00-bug.yml
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 04 23:31:17 UTC 2024 - 3.3K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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)