diff --git a/builder.go b/builder.go index 9be4161..a9e4b78 100644 --- a/builder.go +++ b/builder.go @@ -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 }