Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

ci: go mod tidy #1771

Merged
merged 4 commits into from
Sep 30, 2020
Merged

ci: go mod tidy #1771

merged 4 commits into from
Sep 30, 2020

Conversation

ksubrmnn
Copy link
Contributor

@ksubrmnn ksubrmnn commented Sep 29, 2020

Creates a Github Action for go mod tidy to keep dependencies cleaned up

Dependent on #1768

Please mark with X for applicable areas.

  • New Functionality [ ]
  • Documentation [ ]
  • Install [ ]
  • Control Plane [ ]
  • CLI Tool [ ]
  • Certificate Management [ ]
  • Networking [ ]
  • Metrics [ ]
  • SMI Policy [ ]
  • Security [ ]
  • Tests / CI System [X]
  • Other [ ]

Please answer the following questions with yes/no.

  • Does this change contain code from or inspired by another project? If so, did you notify the maintainers and provide attribution?

No

@ksubrmnn ksubrmnn marked this pull request as ready for review September 29, 2020 22:05
@ksubrmnn ksubrmnn requested a review from a team as a code owner September 29, 2020 22:05
@ksubrmnn ksubrmnn closed this Sep 29, 2020
@ksubrmnn ksubrmnn reopened this Sep 29, 2020
@nojnhuh
Copy link
Contributor

nojnhuh commented Sep 29, 2020

At the expense of yet another bash script, it would be great to invoke a check like this on the pre-push hook as well.

draychev
draychev previously approved these changes Sep 29, 2020
scripts/go-mod-tidy.sh Outdated Show resolved Hide resolved
Comment on lines 3 to 5
go mod tidy
if ! git diff --exit-code go.mod go.sum ; then
echo -e "\nPlease run 'go mod tidy' to clean up dependencies"
Copy link
Member

Choose a reason for hiding this comment

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

This script is already running go mod tidy, so is there a reason why it should be run again as echoed in L5?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This script is also used by the CI so this is the message to let users know how to pass this check.

shashankram
shashankram previously approved these changes Sep 30, 2020
@ksubrmnn ksubrmnn merged commit 6c0650b into openservicemesh:main Sep 30, 2020
@ksubrmnn ksubrmnn deleted the tidy_action branch September 30, 2020 22:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants