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.22.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.23.0
Choose a head ref
  • 1 commit
  • 3 files changed
  • 1 contributor

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
Loading