Skip to content

Backport of add make target script into release/1.4.x#3602

Merged
hc-github-team-consul-core merged 1 commit intorelease/1.4.xfrom
backport/mw/add-go-mod-check-ci/precisely-useful-woodcock
Feb 9, 2024
Merged

Backport of add make target script into release/1.4.x#3602
hc-github-team-consul-core merged 1 commit intorelease/1.4.xfrom
backport/mw/add-go-mod-check-ci/precisely-useful-woodcock

Conversation

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

Backport

This PR is auto-generated from #3596 to be assessed for backporting due to the inclusion of the label backport/1.4.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 af1091c into release/1.4.x Feb 9, 2024
@hc-github-team-consul-core hc-github-team-consul-core deleted the backport/mw/add-go-mod-check-ci/precisely-useful-woodcock branch February 9, 2024 15:48
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