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: d58be1c
Choose a base ref
...
head repository: golang/mod
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: dc121ce
Choose a head ref
  • 12 commits
  • 25 files changed
  • 9 contributors

Commits on Jul 16, 2024

  1. LICENSE: update per Google Legal

    Very minor tweaks:
     - Remove (c) pseudosymbol.
     - Remove "All Rights Reserved."
     - Change "Google Inc." (no longer exists) to "Google LLC".
    
    [git-generate]
    echo '
    ,s/\(c\) //
    ,s/ All rights reserved.//
    ,s/Google Inc./Google LLC/
    w
    q
    ' | sam -d LICENSE
    
    Change-Id: Icf1e124b083e2cfd5c804ccef7f563881d5f41d9
    Reviewed-on: https://go-review.googlesource.com/c/mod/+/598578
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Auto-Submit: Russ Cox <rsc@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    rsc authored and gopherbot committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    79169e9 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2024

  1. modfile: Add support for tool lines

    Add new tool directive to go.mod parser and functions
    to add and drop them.
    
    For golang/go#48429
    
    Change-Id: I37667a69ded9d59ea248ec48ad35c87592103218
    Reviewed-on: https://go-review.googlesource.com/c/mod/+/508355
    Reviewed-by: Michael Matloob <matloob@golang.org>
    Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    ConradIrwin authored and matloob committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    b56a28f View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2024

  1. modfile: fix Cleanup clobbering Line reference

    Fixes golang/go#45130
    
    Change-Id: I2dccba5e958911177f10a5104a182f86ff8378d9
    Reviewed-on: https://go-review.googlesource.com/c/mod/+/303234
    Reviewed-by: Michael Matloob <matloob@golang.org>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: David Chase <drchase@google.com>
    jameshartig authored and matloob committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    d1f873e View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2024

  1. README: fix link to x/tools

    Change-Id: I4803bfe7da3b21fdfe503b9804015f0a5104a52e
    Reviewed-on: https://go-review.googlesource.com/c/mod/+/601441
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Michael Knyszek <mknyszek@google.com>
    mikesep authored and gopherbot committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    bc151c4 View commit details
    Browse the repository at this point in the history

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 <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    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 <dmitshur@golang.org>
    Commit-Queue: Michael Matloob <matloob@golang.org>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    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 <matloob@golang.org>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    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

Commits on Oct 9, 2024

  1. x/mod: remove vendor/modules.txt from module download

    This fixes a bug where vendor/modules.txt was accidently included during
    a module download.
    This CL trims this file for 1.24 modules and beyond. We cannot remove this
    for earlier Go versions because this would alter checksums and cause a
    checksum failure.
    This CL also adds the ability to case on the Go version in the root's
    go.mod file, enabling future behavior changes if necessary.
    
    Fixes: golang/go#63395
    Updates: golang/go#37397
    Change-Id: I4a4f2174b0f5e79c7e5c516e0db3c91e7d2ae4d9
    Reviewed-on: https://go-review.googlesource.com/c/mod/+/584635
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Michael Matloob <matloob@golang.org>
    samthanawalla committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    9cd0e4c View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2024

  1. x/mod: fix handling of vendored packages with '/vendor' in non-top-le…

    …vel paths
    
    This CL address a bug in the handling of vendored packages where the
    '/vendor' element appears in non-top level import paths within a module
    zip file.
    This issue arose from an incorrect offset calculation that caused
    non-vendored packages to be incorrectly identified as vendored.
    This CL corrects the offset calculation for Go 1.24 and beyond.
    
    Fixes golang/go#37397
    
    Change-Id: Ibf1751057e8383c7b82f1622674204597e735b7c
    Reviewed-on: https://go-review.googlesource.com/c/mod/+/619175
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Michael Matloob <matloob@golang.org>
    samthanawalla committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    c8a7319 View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2024

  1. sumdb: make data tiles by Server compatible with sum.golang.org

    Make the format of sumdb.Server data tile responses compatible with those
    served by sum.golang.org: Like formatted records for the lookup endpoint, but
    without each record IDs.
    
    Updates documentation for sumdb/tlog.FormatRecord about data tiles.
    Server still calls FormatRecord to keep the validation, then removes the first
    line.
    
    For golang/go#69348
    
    Change-Id: I1bea45b3343c58acc90982aaff5d41e32b06ae8c
    Reviewed-on: https://go-review.googlesource.com/c/mod/+/618135
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Michael Matloob <matloob@golang.org>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    mjl- authored and matloob committed Nov 1, 2024
    Configuration menu
    Copy the full SHA
    dec0365 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2025

  1. modfile: fix trailing empty lines in require blocks

    This change ensures that trailing empty lines in `require` blocks
    are ignored during parsing itself. Specifically:
    
    - Modified the `parseLineBlock` function to detect and discard blank lines
    (represented by a single empty comment) at the end of a block.
    - Blank lines within a block are preserved as expected, but trailing
    blank lines immediately before the closing parenthesis are now skipped.
    
    For golang/go#70632
    
    Change-Id: Ica76b3edb3bf7fdc327c7cdc9e401dcf19c523b0
    GitHub-Last-Rev: 1477d7c
    GitHub-Pull-Request: #22
    Reviewed-on: https://go-review.googlesource.com/c/mod/+/634875
    Reviewed-by: Michael Matloob <matloob@golang.org>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Cherry Mui <cherryyz@google.com>
    Agent-Hellboy authored and matloob committed Feb 3, 2025
    Configuration menu
    Copy the full SHA
    52289f1 View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2025

  1. all: upgrade go directive to at least 1.23.0 [generated]

    By now Go 1.24.0 has been released, and Go 1.22 is no longer supported
    per the Go Release Policy (https://go.dev/doc/devel/release#policy).
    
    For golang/go#69095.
    
    [git-generate]
    (cd . && go get go@1.23.0 && go mod tidy && go fix ./... && go mod edit -toolchain=none)
    
    Change-Id: Id57a8feb7635d63f320ed0076af5c29a580ce6eb
    Reviewed-on: https://go-review.googlesource.com/c/mod/+/649717
    Auto-Submit: Gopher Robot <gobot@golang.org>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Reviewed-by: Cherry Mui <cherryyz@google.com>
    gopherbot committed Feb 14, 2025
    Configuration menu
    Copy the full SHA
    dc121ce View commit details
    Browse the repository at this point in the history
Loading