Skip to content

Backport of add make target script into release/1.2.x#3600

Merged
hc-github-team-consul-core merged 1 commit intorelease/1.2.xfrom
backport/mw/add-go-mod-check-ci/sensibly-cosmic-squid
Feb 9, 2024
Merged

Backport of add make target script into release/1.2.x#3600
hc-github-team-consul-core merged 1 commit intorelease/1.2.xfrom
backport/mw/add-go-mod-check-ci/sensibly-cosmic-squid

Conversation

@hc-github-team-consul-core
Copy link
Copy Markdown
Collaborator

Backport

This PR is auto-generated from #3596 to be assessed for backporting due to the inclusion of the label backport/1.2.x.

The below text is copied from the body of the original PR.


Changes proposed in this PR

This adds a script and a make target for running go mod tidy recursively. It also adds a new target that reports back an error if go mod tidy needs to be run. This is useful for CI.

How I've tested this PR

I committed a change locally of an incorrect go.mod file then ran the script with and without the check. Verified check behaviour returns an error.

How I expect reviewers to test this PR

👀

Checklist


Overview of commits

@hc-github-team-consul-core hc-github-team-consul-core merged commit 58a3ee0 into release/1.2.x Feb 9, 2024
@hc-github-team-consul-core hc-github-team-consul-core deleted the backport/mw/add-go-mod-check-ci/sensibly-cosmic-squid branch February 9, 2024 15:44
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.

2 participants