- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 785 for gomod (0.04 sec)
-
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) -
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) -
src/cmd/go/testdata/script/mod_retract_replace.txt
go list -m -retracted -f '{{if not .Retracted}}good version{{end}}' example.com/retract/missingmod stdout '^good version$' # If a replacement version is retracted, we should see a retraction. # It should appear in both the replaced module and the replacement, as other # fields like GoMod do. go list -m -retracted -f '{{range .Retracted}}{{.}}{{end}}' example.com/retract ! stdout .
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 28 17:19:14 UTC 2021 - 2K bytes - Viewed (0) -
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/proxy_test.go
a, err := readArchive(path, vers) if err != nil { return nil, err } var names []string files := make(map[string][]byte) var gomod []byte for _, f := range a.Files { if strings.HasPrefix(f.Name, ".") { if f.Name == ".mod" { gomod = f.Data } continue } name := path + "@" + vers + "/" + f.Name names = append(names, name) files[name] = f.Data }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 03 09:56:24 UTC 2023 - 12K 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/testdata/script/mod_get_go_file.txt
# Tests Issue #38478 # Tests that go get in GOMOD mode returns a specific error if the argument # ends with '.go', has no version, and either has no slash or refers to an # existing file. env GO111MODULE=on # argument doesn't have .go suffix and has no version ! go get test ! stderr 'arguments must be package or module paths' ! stderr 'exists as a file, but ''go get'' requires package arguments' # argument has .go suffix and has version
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 28 17:19:08 UTC 2021 - 2.3K bytes - Viewed (0)