builder: Ignore tidy errors (#142)

This commit is contained in:
Francis Lavoie 2023-05-09 13:58:48 -04:00 committed by GitHub
parent ae5637008a
commit c9644d6e6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -107,7 +107,7 @@ func (b Builder) Build(ctx context.Context, outputFile string) error {
log.Println("[INFO] Building Caddy")
// tidy the module to ensure go.mod and go.sum are consistent with the module prereq
tidyCmd := buildEnv.newGoModCommand(ctx, "tidy")
tidyCmd := buildEnv.newGoModCommand(ctx, "tidy", "-e")
if err := buildEnv.runCommand(ctx, tidyCmd); err != nil {
return err
}