Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: golang/mod
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.20.0
Choose a base ref
...
head repository: golang/mod
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.21.0
Choose a head ref
  • 3 commits
  • 3 files changed
  • 1 contributor

Commits on Aug 15, 2024

  1. go.mod: update required go version to go1.22

    Now that go1.23 has been released, versions of Go older than go1.22 are
    no longer supported.
    
    This will allow us to use the go/version package, which was introduced
    in Go 1.22.
    
    This change will force modules that depend on golang.org/x/mod, notably
    golang.org/x/tools, to update their Go version requirement to at least
    go1.22 when they update their requirement on golang.org/x/mod to a
    version after this commit.
    
    For golang/go#63395
    
    Change-Id: I6f6b5bb9e43b5f9945cc5bc8c398628436d2e739
    Reviewed-on: https://go-review.googlesource.com/c/mod/+/605796
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    matloob committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    b1d336c View commit details
    Browse the repository at this point in the history
  2. go.mod: set go version to 1.22.0

    The go verison was set to 1.22 but on Go versions 1.21.0 up to 1.21.10,
    the toolchain upgrade logic will try to download the release "1.22",
    which doesn't exist. Go 1.21.11+ incorporates CL 580217 (cherry-picked
    in CL 583797) and will download 1.22.0, so it should be fine, but set
    1.22.0 to allow the upgrade for users with older local toolchains.
    
    Change-Id: I9aafaaa389ded3200b15fd3e7bb676610fa958d8
    Reviewed-on: https://go-review.googlesource.com/c/mod/+/605935
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    Commit-Queue: Michael Matloob <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    matloob committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    3afcd4e View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2024

  1. zip: set GIT_DIR in test when using bare repositories

    If git has safe.bareRepository=explicit set, operations on bare git
    repos will fail unless --git-dir or GIT_DIR is set. Set GIT_DIR in the
    parts of the zip test that use bare repos to allow the tests to pass in
    those circumstances.
    
    See CL 489915 for the change setting GIT_DIR for git operations on bare
    repositories in cmd/go.
    
    Change-Id: I1f8ae9ed2b687a58d533fa605ed9ad4b5cbb8549
    Reviewed-on: https://go-review.googlesource.com/c/mod/+/605937
    Auto-Submit: Michael Matloob <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    matloob authored and gopherbot committed Aug 16, 2024
    Configuration menu
    Copy the full SHA
    46a3137 View commit details
    Browse the repository at this point in the history
Loading