Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Run go mod tidy -e before building #730

Merged
merged 3 commits into from
May 13, 2022

Conversation

owen-mc
Copy link
Contributor

@owen-mc owen-mc commented Apr 30, 2022

I think this works. The easiest way to test it is to delete lines from go.mod and/or go.sum and check that it works and prints log messages that make sense.

@owen-mc owen-mc force-pushed the bugfix/build/go-mod-tidy branch from 91330a2 to a6e6be8 Compare May 1, 2022 06:31
@owen-mc owen-mc force-pushed the bugfix/build/go-mod-tidy branch from a6e6be8 to 22ccbba Compare May 3, 2022 13:57
@owen-mc owen-mc marked this pull request as ready for review May 3, 2022 13:58
@owen-mc owen-mc requested a review from a team as a code owner May 3, 2022 13:58
owen-mc and others added 2 commits May 4, 2022 10:11
Prior to this (a) Go will attempt to update go.mod/sum anyhow, and (b) the `mod tidy -e` option isn't available.
@smowton
Copy link
Contributor

smowton commented May 13, 2022

After looking at this some more I've decided to just gate this by Go >= 1.16 and then commit -- the other options re: checking whether mod-tidy would help or not were tangly and the number of projects lost to a failed tidy operation is low.

@smowton smowton enabled auto-merge May 13, 2022 16:36
@smowton smowton merged commit 77461f7 into github:main May 13, 2022
@owen-mc owen-mc deleted the bugfix/build/go-mod-tidy branch May 16, 2022 09:10
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.

2 participants