- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 588 for gomod (0.59 sec)
-
src/cmd/go/internal/modload/init.go
} var modFiles []*modfile.File var mainModules []module.Version var indices []*modFileIndex var errs []error for _, modroot := range modRoots { gomod := modFilePath(modroot) var fixed bool data, f, err := ReadModFile(gomod, fixVersion(ctx, &fixed)) if err != nil { if inWorkspaceMode() { if tooNew, ok := err.(*gover.TooNewError); ok && !strings.HasPrefix(cfg.CmdName, "work ") {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 18:36:30 UTC 2024 - 69.8K bytes - Viewed (0) -
src/cmd/go/internal/toolchain/select.go
return } // As a special case, let "go env GOMOD" and "go env GOWORK" be handled by // the local toolchain. Users expect to be able to look up GOMOD and GOWORK // since the go.mod and go.work file need to be determined to determine // the minimum toolchain. See issue #61455. if len(os.Args) == 3 && os.Args[1] == "env" && (os.Args[2] == "GOMOD" || os.Args[2] == "GOWORK") { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 17:25:05 UTC 2024 - 23.4K bytes - Viewed (0) -
src/cmd/cgo/internal/testshared/shared_test.go
} if major < 5 { t.Skipf("gccgo too old (%s)", strings.TrimSpace(string(output))) } gomod, err := exec.Command("go", "env", "GOMOD").Output() if err != nil { t.Fatalf("go env GOMOD: %v", err) } if len(bytes.TrimSpace(gomod)) > 0 { t.Skipf("gccgo not supported in module mode; see golang.org/issue/30344") } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Aug 26 01:54:41 UTC 2023 - 36.3K bytes - Viewed (0) -
src/cmd/go/internal/help/helpdoc.go
GOHOSTOS The operating system (GOOS) of the Go toolchain binaries. GOMOD The absolute path to the go.mod of the main module. If module-aware mode is enabled, but there is no go.mod, GOMOD will be os.DevNull ("/dev/null" on Unix-like systems, "NUL" on Windows). If module-aware mode is disabled, GOMOD will be the empty string. GOTOOLDIR
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 16:54:28 UTC 2024 - 36.3K bytes - Viewed (0) -
src/cmd/go/internal/list/list.go
Indirect bool // module is only indirectly needed by main module Dir string // directory holding local copy of files, if any GoMod string // path to go.mod file describing module, if any GoVersion string // go version used in module Retracted []string // retraction information, if any (with -retracted or -u)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 16:56:39 UTC 2024 - 33.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/modfile/read.go
} } tokens = append(tokens, tok.text) end = tok.endPos } } var ( slashSlash = []byte("//") moduleStr = []byte("module") ) // ModulePath returns the module path from the gomod file text. // If it cannot find a module path, it returns an empty string. // It is tolerant of unrelated problems in the go.mod file. func ModulePath(mod []byte) string { for len(mod) > 0 { line := mod
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 23.1K bytes - Viewed (0) -
src/cmd/go/alldocs.go
// GOHOSTOS // The operating system (GOOS) of the Go toolchain binaries. // GOMOD // The absolute path to the go.mod of the main module. // If module-aware mode is enabled, but there is no go.mod, GOMOD will be // os.DevNull ("/dev/null" on Unix-like systems, "NUL" on Windows). // If module-aware mode is disabled, GOMOD will be the empty string. // GOTOOLDIR
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 16:54:28 UTC 2024 - 142.4K bytes - Viewed (0) -
src/go/build/build.go
return errNoModules } // Predict whether module aware mode is enabled by checking the value of // GO111MODULE and looking for a go.mod file in the source directory or // one of its parents. Running 'go env GOMOD' in the source directory would // give a canonical answer, but we'd prefer not to execute another command. go111Module := os.Getenv("GO111MODULE") switch go111Module { case "off": return errNoModules
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 62.3K bytes - Viewed (0) -
src/cmd/go/internal/load/pkg.go
return nil, fmt.Errorf("%s: %w", args[0], err) } if deprecation != "" { fmt.Fprintf(os.Stderr, "go: module %s is deprecated: %s\n", rootMod.Path, modload.ShortMessage(deprecation, "")) } data, err := modfetch.GoMod(ctx, rootMod.Path, rootMod.Version) if err != nil { return nil, fmt.Errorf("%s: %w", args[0], err) } f, err := modfile.Parse("go.mod", data, nil) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 28 17:00:51 UTC 2024 - 120K bytes - Viewed (0) -
src/os/exec/dot_test.go
good := dir + "/execabs-test" if found, err := LookPath(good); err != nil || !strings.HasPrefix(found, good) { t.Fatalf(`LookPath(%#q) = %#q, %v, want "%s...", nil`, good, found, err, good) } if runtime.GOOS == "windows" { good = dir + `\execabs-test` if found, err := LookPath(good); err != nil || !strings.HasPrefix(found, good) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 13 18:19:21 UTC 2023 - 6.1K bytes - Viewed (0)