-
Notifications
You must be signed in to change notification settings - Fork 86
modfile: fix trailing empty lines in require blocks #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
modfile: fix trailing empty lines in require blocks #22
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
This PR (HEAD: 5046e90) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/mod/+/634875. Important tips:
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
Message from Gopher Robot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
Message from Michael Matloob: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
Message from Prince Roshan: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
Message from Prince Roshan: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
Message from Michael Matloob: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
This PR (HEAD: 51c4aaa) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/mod/+/634875. Important tips:
|
This PR (HEAD: 3bf98a4) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/mod/+/634875. Important tips:
|
Message from Prince Roshan: Patch Set 5: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
This PR (HEAD: 6a8257d) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/mod/+/634875. Important tips:
|
Message from Michael Matloob: Patch Set 6: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
Message from Prince Roshan: Patch Set 6: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
This PR (HEAD: 9cdc3b8) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/mod/+/634875. Important tips:
|
Message from Michael Matloob: Patch Set 7: (3 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
This PR (HEAD: eb3647b) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/mod/+/634875. Important tips:
|
Message from Prince Roshan: Patch Set 7: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
Message from Michael Matloob: Patch Set 8: Commit-Queue+1 (4 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
Message from Go LUCI: Patch Set 8: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2025-01-15T18:14:14Z","revision":"4e037adef5970f4f67ead0a5f4d79395f1fdc169"} Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
Message from Michael Matloob: Patch Set 8: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
Message from Go LUCI: Patch Set 8: This CL has failed the run. Reason: Tryjob golang/try/x_mod-gotip-linux-arm64 has failed with summary (view all results):
Build or test failure, click here for results. To reproduce, try Additional links for debugging: Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
Message from Go LUCI: Patch Set 8: LUCI-TryBot-Result-1 Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
Message from Prince Roshan: Patch Set 8: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
This PR (HEAD: 1477d7c) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/mod/+/634875. Important tips:
|
Message from Prince Roshan: Patch Set 9: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
Message from Michael Matloob: Patch Set 9: Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
Message from Go LUCI: Patch Set 9: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2025-01-16T19:04:30Z","revision":"82fb48764693964d043350743820522fafad4c5e"} Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
Message from Michael Matloob: Patch Set 9: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
Message from Go LUCI: Patch Set 9: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
Message from Go LUCI: Patch Set 9: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
Message from Michael Matloob: Patch Set 9: (4 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
Message from Prince Roshan: Patch Set 9: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
Message from Prince Roshan: Patch Set 9: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
Message from Michael Matloob: Patch Set 9: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
Message from Prince Roshan: Patch Set 10: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
Message from Michael Matloob: Patch Set 10: Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
Message from Go LUCI: Patch Set 10: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2025-01-16T20:37:40Z","revision":"14732225a4d34e86c38e0e8e65274b0cdadeb7c6"} Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
Message from Michael Matloob: Patch Set 10: Code-Review+2 (5 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
Message from Michael Matloob: Patch Set 10: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
Message from Go LUCI: Patch Set 10: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
Message from Go LUCI: Patch Set 10: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
Message from Cherry Mui: Patch Set 11: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/634875. |
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>
This PR is being closed because golang.org/cl/634875 has been merged. |
This change ensures that trailing empty lines in
require
blocksare ignored during parsing itself. Specifically:
parseLineBlock
function to detect and discard blank lines(represented by a single empty comment) at the end of a block.
blank lines immediately before the closing parenthesis are now skipped.
For golang/go#70632