Skip to content
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

Run go mod tidy globally #845

Merged
merged 4 commits into from
Nov 12, 2020
Merged

Run go mod tidy globally #845

merged 4 commits into from
Nov 12, 2020

Conversation

refs
Copy link
Member

@refs refs commented Nov 12, 2020

this should be a timed job.

Methodology:

go-modules() {
  find . \( -name vendor -o -name '[._].*' -o -name node_modules \) -prune -o -name go.mod -print | sed 's:/go.mod$::'
}
for m in $(go-modules); do (cd $m && go mod tidy); done

@update-docs
Copy link

update-docs bot commented Nov 12, 2020

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

Copy link
Contributor

@C0rby C0rby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@C0rby
Copy link
Contributor

C0rby commented Nov 12, 2020

I agree that it should be done periodically.

@felixboehm
Copy link
Contributor

for m in $(ls -d */go.mod* | cut -d "/" -f 1); do (cd $m && go mod tidy); done

@sonarcloud
Copy link

sonarcloud bot commented Nov 12, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@refs refs merged commit 63d98d0 into master Nov 12, 2020
@refs refs deleted the run-tidy-globally branch November 12, 2020 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants