- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for goModSum (0.15 sec)
-
src/cmd/go/testdata/script/mod_list_m.txt
go mod tidy go list -m -json all stdout '"GoModSum":\s+"h1:.+"' stdout '"Sum":\s+"h1:.+"' -- go.mod -- module example go 1.21 require rsc.io/quote v1.5.1 -- example.go -- package example
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 16:56:39 UTC 2024 - 215 bytes - Viewed (0) -
src/cmd/go/internal/modcmd/download.go
if err != nil { return err } m.Info = file m.GoMod, err = modfetch.GoModFile(ctx, m.Path, m.Version) if err != nil { return err } m.GoModSum, err = modfetch.GoModSum(ctx, m.Path, m.Version) if err != nil { return err } mod := module.Version{Path: m.Path, Version: m.Version} m.Zip, err = modfetch.DownloadZip(ctx, mod) if err != nil { return err }
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/go/internal/modload/build.go
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 } } if checksumOk("") { dir, err := modfetch.DownloadDir(ctx, mod) if err == nil { m.Dir = dir }
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/internal/modinfo/info.go
Error *ModuleError `json:",omitempty"` // error loading module Sum string `json:",omitempty"` // checksum for path, version (as in go.sum) GoModSum string `json:",omitempty"` // checksum for go.mod (as in go.sum) Origin *codehost.Origin `json:",omitempty"` // provenance of module Reuse bool `json:",omitempty"` // reuse of old module info is safe
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 3.1K bytes - Viewed (0) -
doc/next/3-tools.md
It exits with a non-zero code if updates are needed. <!-- go.dev/issue/52792, CL 562775 --> <!-- TODO: Improve this if needed. --> The `go` `list` `-m` `-json` command now includes new `Sum` and `GoModSum` fields. This is similar to the existing behavior of the `go` `mod` `download` `-json` command. <!-- go.dev/issue/67111 ("cmd/go: add go telemetry subcommand") -->
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 28 19:06:07 UTC 2024 - 3.4K bytes - Viewed (0) -
src/cmd/go/testdata/script/mod_sum_issue56222.txt
go mod download -json example.com/generics stdout '"GoModSum":' go list -f '{{if eq .ImportPath "example.com/generics"}}{{.Module.GoVersion}}{{end}}' -deps -test example.com/m2/q stdout 1.18 # At go 1.20 or earlier, 'go mod tidy' should preserve the historical go.sum
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 12 13:58:58 UTC 2023 - 2.8K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/cache.go
if err != nil { return "", err } return file, nil } // GoModSum returns the go.sum entry for the module version's go.mod file. // (That is, it returns the entry listed in go.sum as "path version/go.mod".) func GoModSum(ctx context.Context, path, version string) (string, error) { if !gover.ModIsValid(path, version) {
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/internal/modfetch/fetch.go
} if err := checkModSum(mod, h); err != nil { base.Fatalf("%s", err) } } // goModSum returns the checksum for the go.mod contents. func goModSum(data []byte) (string, error) { return dirhash.Hash1([]string{"go.mod"}, func(string) (io.ReadCloser, error) { return io.NopCloser(bytes.NewReader(data)), nil }) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 14:56:56 UTC 2024 - 30.3K bytes - Viewed (0) -
src/cmd/go/testdata/script/mod_download.txt
stdout '^\t"Sum": "h1:6fJa6E\+wGadANKkUMlZ0DhXFpoKlslOQDCo259XtdIE="' # hash of testdata/mod version, not real version! stdout '^\t"GoModSum": "h1:LzX7hefJvL54yjefDEDHNONDjII0t9xZLPXsUe\+TKr0="' ! stdout '"Error"' # download queries above should not have added to go.mod. go list -m all ! stdout rsc.io
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 04 20:42:35 UTC 2021 - 8.5K bytes - Viewed (0) -
src/cmd/go/internal/list/list.go
Deprecated string // deprecation message, if any (with -u) Error *ModuleError // error loading module Sum string // checksum for path, version (as in go.sum) GoModSum string // checksum for go.mod (as in go.sum) Origin any // provenance of module Reuse bool // reuse of old module info is safe } type ModuleError struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 16:56:39 UTC 2024 - 33.3K bytes - Viewed (0)