-
Notifications
You must be signed in to change notification settings - Fork 608
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
makefile: add target to run go mod tidy
in all submodules
#6535
Conversation
Important Notice This PR modifies an in-repo Go module. It is one of:
The dependent Go modules, especially the root one, will have to be Please follow the instructions below:
Please let us know if you need any help. |
Ignoring since the changes in submodules are the updates of go modules themselves |
devbot add changelog feat makefile: add target that tidies all submodules at once |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know why go.mod would have changed by any chance?
I suppose it is because somebody updated import paths in a module without updating go.mod |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Would be great to add this to devbot CC: @ValarDragon
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK! Thanks for the quick PR!
* add script * global go mod tidy rule makefile * add run result * update changelog * remove unnecessary echo to reduce size of logs emitted * tidy workspace after main merge --------- Co-authored-by: devbot-wizard <[email protected]> (cherry picked from commit 3db3efd) # Conflicts: # CHANGELOG.md # tests/cl-genesis-positions/go.sum
* add script * global go mod tidy rule makefile * add run result * update changelog * remove unnecessary echo to reduce size of logs emitted * tidy workspace after main merge --------- Co-authored-by: devbot-wizard <[email protected]>
…6535) (#6552) * makefile: add target to run `go mod tidy` in all submodules (#6535) * add script * global go mod tidy rule makefile * add run result * update changelog * remove unnecessary echo to reduce size of logs emitted * tidy workspace after main merge --------- Co-authored-by: devbot-wizard <[email protected]> (cherry picked from commit 3db3efd) # Conflicts: # CHANGELOG.md # tests/cl-genesis-positions/go.sum * resolve merge conflict * tidy workspace after conflict resolution --------- Co-authored-by: Ruslan Akhtariev <[email protected]> Co-authored-by: Ruslan Akhtariev <[email protected]>
Closes: #6531
What is the purpose of the change
Add a makefile target that runs a script that tidies all submodules by parsing go.work file. To run the script, cd into the root of the repository and run
make tidy-workspace
In addition, this PR includes the changes made by this new target
Testing and Verifying
Manually tested, changes included in this PR
Documentation and Release Note
Changelog