Skip to content

Commit

Permalink
Run go mod tidy after adding dependencies to generated Beat (#19897)
Browse files Browse the repository at this point in the history
  • Loading branch information
kvch authored Jul 14, 2020
1 parent 64cb5aa commit 81ee18f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion generator/common/beatgen/setup/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ func InitModule() error {
return errors.Wrap(err, "error initializing a module for the Beat")
}

return copyReplacedModules()
err = copyReplacedModules()
if err != nil {
return errors.Wrap(err, "error adding replaced modules to go.mod")
}
return gotool.Mod.Tidy()
}

func copyReplacedModules() error {
Expand Down

0 comments on commit 81ee18f

Please sign in to comment.