- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 313 for gomod (0.05 sec)
-
src/cmd/go/testdata/script/env_gomod_issue61455.txt
env TESTGO_VERSION=go1.500 env TESTGO_VERSION_SWITCH=mismatch # go env GOMOD should not trigger a toolchain download cd $GOPATH/mod go env GOMOD stdout mod[/\\]go.mod ! stderr 'go: toolchain go1.500 invoked to provide go1.700' # go env GOWORK should not trigger a toolchain download cd $GOPATH/work go env GOWORK stdout work[/\\]go.work ! stderr 'go: toolchain go1.500 invoked to provide go1.700' -- $GOPATH/mod/go.mod --
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 25 16:05:39 UTC 2024 - 510 bytes - Viewed (0) -
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) -
.github/dependabot.yml
# Configures Depdendabot to PR go security updates only version: 2 updates: # Go configuration for master branch - package-ecosystem: "gomod" directory: "/" schedule: interval: "daily" # Limit number of open PRs to 0 so that we only get security updates # See https://docs.github.com/en/code-security/dependabot/dependabot-security-updates/configuring-dependabot-security-updates open-pull-requests-limit: 0 labels:
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 07 04:04:41 UTC 2024 - 480 bytes - Viewed (0) -
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) -
src/cmd/go/testdata/script/work.txt
! go run example.com/b stderr 'a(\\|/)a.go:4:8: no required module provides package rsc.io/quote; to add it:\n\tcd '$WORK(\\|/)gopath(\\|/)src(\\|/)a'\n\tgo get rsc.io/quote' cd a go get rsc.io/quote cat go.mod go env GOMOD # go env GOMOD reports the module in a single module context stdout $GOPATH(\\|/)src(\\|/)a(\\|/)go.mod cd .. go run example.com/b stdout 'Hello, world.' # And try from a different directory cd c go run example.com/b
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 18:36:30 UTC 2024 - 2.6K 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/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/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)