- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 785 for gomod (0.05 sec)
-
src/cmd/go/internal/modload/build.go
m.GoVersion = summary.goVersion } } if m.Version != "" { if checksumOk("/go.mod") { gomod, err := modfetch.CachePath(ctx, mod, "mod") if err == nil { if info, err := os.Stat(gomod); err == nil && info.Mode().IsRegular() { m.GoMod = gomod } } if gomodsum, ok := modfetch.RecordedSum(modkey(mod)); ok { m.GoModSum = gomodsum } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 16:56:39 UTC 2024 - 13.3K bytes - Viewed (0) -
src/cmd/go/testdata/script/mod_list_direct.txt
# ensure that 'direct' mode can resolve the package to the module. # For a while, (*modfetch.codeRepo).Stat was not checking for a go.mod file, # which would produce a hard error at the subsequent call to GoMod. go get -v -- go.mod -- module example.com go 1.13 -- main.go -- package main import _ "vcs-test.golang.org/git/v3pkg.git/v3"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 24 15:54:04 UTC 2023 - 514 bytes - Viewed (0) -
src/cmd/doc/dirs.go
func findCodeRoots() []Dir { var list []Dir if !testGOPATH { // Check for use of modules by 'go env GOMOD', // which reports a go.mod file path if modules are enabled. stdout, _ := exec.Command(goCmd(), "env", "GOMOD").Output() gomod := string(bytes.TrimSpace(stdout)) usingModules = len(gomod) > 0 if usingModules && buildCtx.GOROOT != "" { list = append(list,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 17:49:12 UTC 2022 - 9K bytes - Viewed (0) -
src/cmd/go/testdata/script/chdir.txt
stderr 'chdir.*nonexist' # check for -C in subcommands with custom flag parsing # cmd/go/chdir_test.go handles the normal ones more directly. # go doc go doc -C ../strings HasPrefix # go env go env -C $OLD/custom GOMOD stdout 'custom[\\/]go.mod' ! go env -C ../nonexist stderr '^go: chdir ../nonexist: ' # go test go test -C ../strings -n stderr 'strings\.test' # go vet go vet -C ../strings -n stderr strings_test
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 06 19:23:42 UTC 2023 - 744 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/modload/modfile.go
) // ReadModFile reads and parses the mod file at gomod. ReadModFile properly applies the // overlay, locks the file while reading, and applies fix, if applicable. func ReadModFile(gomod string, fix modfile.VersionFixer) (data []byte, f *modfile.File, err error) { gomod = base.ShortPath(gomod) // use short path in any errors if gomodActual, ok := fsys.OverlayPath(gomod); ok { // Don't lock go.mod if it's part of the overlay.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 26 17:53:40 UTC 2023 - 26.7K bytes - Viewed (0) -
src/cmd/go/testdata/script/mod_symlink.txt
symlink links/issue.go -> $GOPATH/src/issue.go mkdir links/subpkg symlink links/subpkg/issue.go -> $GOPATH/src/subpkg/issue.go # We should see the copy as a valid module root. cd links go env GOMOD stdout links[/\\]go.mod go list -m stdout golang.org/issue/28107 # The symlink-based copy should contain the same packages # and have the same dependencies as the original. go list -deps -f '{{.Module}}' .
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 28 17:19:14 UTC 2021 - 1.1K bytes - Viewed (0)