Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 185 for sums (0.07 sec)

  1. src/cmd/go/testdata/script/mod_init_tidy.txt

    cd pkginroot
    go mod init m
    stderr '^go: to add module requirements and sums:\n\tgo mod tidy$'
    cd ..
    
    # 'go mod init' should recommend 'go mod tidy' if the directory has a
    # subdirectory. We don't walk the tree to see if it has .go files.
    cd subdir
    go mod init m
    stderr '^go: to add module requirements and sums:\n\tgo mod tidy$'
    cd ..
    
    -- empty/empty.txt --
    Not a .go file. Still counts as an empty project.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 06 18:54:25 UTC 2021
    - 955 bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/mod_tidy_old.txt

    # 'go mod tidy' should remove content sums for module versions that aren't
    # in the build list. It should preserve go.mod sums for module versions that
    # are in the module graph though.
    # Verifies golang.org/issue/33008.
    go mod tidy
    ! grep '^rsc.io/quote v1.5.0 h1:' go.sum
    grep '^rsc.io/quote v1.5.0/go.mod h1:' go.sum
    
    -- go.mod --
    module m
    
    go 1.15
    
    require (
    	rsc.io/quote v1.5.2
    	example.com/r v0.0.0
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 14 21:04:12 UTC 2020
    - 1.4K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/mod_overlay.txt

    # Overlaid go.sum is not rewritten.
    # Copy an incomplete file to the overlay file, and expect an error
    # attempting to update the file
    cp incomplete-sum-file $WORK/overlay/overlay-sum-used-correct-sums
    ! go get -overlay overlay.json .
    stderr '^go: updates to go.sum needed, but go.sum is part of the overlay specified with -overlay$'
    cmp incomplete-sum-file $WORK/overlay/overlay-sum-used-correct-sums
    ! go mod tidy -overlay overlay.json
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 28 17:19:14 UTC 2021
    - 7.7K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modfetch/fetch.go

    	return true
    }
    
    var ErrGoSumDirty = errors.New("updates to go.sum needed, disabled by -mod=readonly")
    
    // WriteGoSum writes the go.sum file if it needs to be updated.
    //
    // keep is used to check whether a newly added sum should be saved in go.sum.
    // It should have entries for both module content sums and go.mod sums
    // (version ends with "/go.mod"). Existing sums will be preserved unless they
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/work_install_submodule.txt

    # This is a regression test for golang.org/issue/50036
    # Don't check sums for other modules in the workspace.
    
    cd m/sub
    go install -n
    
    -- go.work --
    go 1.18
    
    use (
        ./m
        ./m/sub
    )
    -- m/go.mod --
    module example.com/m
    
    go 1.18
    
    -- m/m.go --
    package m
    
    func M() {}
    -- m/sub/go.mod --
    module example.com/m/sub
    
    go 1.18
    
    require example.com/m v1.0.0
    -- m/sub/main.go --
    package main
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 13 19:35:14 UTC 2022
    - 435 bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/work_sum.txt

    # Test adding sums to go.work.sum when sum isn't in go.mod.
    
    go run .
    cmp go.work.sum want.sum
    
    -- want.sum --
    golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c h1:pvCbr/wm8HzDD3fVywevekufpn6tCGPY3spdHeZJEsw=
    golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
    rsc.io/quote v1.5.2 h1:3fEykkD9k7lYzXqCYrwGAf7iNhbk4yCjHmKBN9td4L0=
    rsc.io/quote v1.5.2/go.mod h1:LzX7hefJvL54yjefDEDHNONDjII0t9xZLPXsUe+TKr0=
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 16 17:32:23 UTC 2021
    - 833 bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/mod_verify_work.txt

    # Regression test for Issue #62663: we would filter out the toolchain and
    # main modules from the build list incorrectly, leading to the workspace
    # modules being checked for correct sums. Specifically this would happen when
    # the module name sorted after the virtual 'go' version module name because
    # it could not get chopped off when we removed the MainModules.Len() modules
    # at the beginning of the build list and we would remove the go module instead.
    
    go mod verify
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 16:56:35 UTC 2024
    - 724 bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/mod_get_update_unrelated_sum.txt

    # even if we didn't load packages from them.
    # Verifies #44129.
    
    env fmt='{{.ImportPath}}: {{if .Error}}{{.Error.Err}}{{else}}ok{{end}}'
    
    # Control case: before upgrading, we have the sums we need.
    # go list -deps -e -f $fmt .
    # stdout '^rsc.io/quote: ok$'
    # ! stdout rsc.io/sampler  # not imported by quote in this version
    cp go.mod.orig go.mod
    cp go.sum.orig go.sum
    go mod tidy
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 28 17:19:14 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  9. src/hash/adler32/adler32.go

    // license that can be found in the LICENSE file.
    
    // Package adler32 implements the Adler-32 checksum.
    //
    // It is defined in RFC 1950:
    //
    //	Adler-32 is composed of two sums accumulated per byte: s1 is
    //	the sum of all bytes, s2 is the sum of all s1 values. Both sums
    //	are done modulo 65521. s1 is initialized to 1, s2 to zero.  The
    //	Adler-32 checksum is stored as s2*65536 + s1 in most-
    //	significant-byte first (network) order.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 12 05:36:29 UTC 2024
    - 3K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/mod_sum_ambiguous.txt

    grep '^example.com/ambiguous/a v1.0.0 h1:' go.sum
    ! grep '^example.com/ambiguous/a/b v0.0.0-empty h1:' go.sum
    go mod download example.com/ambiguous/a/b
    grep '^example.com/ambiguous/a/b v0.0.0-empty h1:' go.sum
    
    # If two modules could provide a package, and we're missing a sum for one,
    # we should see a missing sum error, even if we have a sum for a module that
    # provides the package.
    cp go.sum.a-only go.sum
    ! go list example.com/ambiguous/a/b
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 13 23:37:31 UTC 2021
    - 2.9K bytes
    - Viewed (0)
Back to top