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

build: use go-modtool to format go.mod file #18195

Merged
merged 1 commit into from
Aug 15, 2023
Merged

build: use go-modtool to format go.mod file #18195

merged 1 commit into from
Aug 15, 2023

Conversation

shoenig
Copy link
Member

@shoenig shoenig commented Aug 14, 2023

This is the first of two uses of go-modtool - here we use the fmt subcommand to consistently format the go.mod file of the Nomad project (and will do the same in the ent repo). Once the formatting is in place in both repos, we can use the merge subcommand during oss-merge.sh fallback merge resolution to (hopefully) avoid dealing with trivial go.mod merge conflicts. I suspect the same pattern could be used for backports, but I hadn't thought that far ahead.

@shoenig shoenig changed the title build: use modtool to format go.mod file build: use go-modtool to format go.mod file Aug 14, 2023
@shoenig shoenig marked this pull request as ready for review August 14, 2023 19:47
@shoenig shoenig requested review from tgross and jrasell August 14, 2023 19:47
Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@jrasell jrasell left a comment

Choose a reason for hiding this comment

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

LGTM!

@shoenig shoenig merged commit 77e139e into main Aug 15, 2023
22 checks passed
@shoenig shoenig deleted the format-gomod branch August 15, 2023 12:26
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.

3 participants