diff --git a/pkg/leeway/build.go b/pkg/leeway/build.go index ec62c9d..d77d60a 100644 --- a/pkg/leeway/build.go +++ b/pkg/leeway/build.go @@ -904,6 +904,7 @@ func (p *Package) buildGo(buildctx *buildContext, wd, result string) (err error) if cfg.Generate { commands = append(commands, []string{goCommand, "generate", "-v", "./..."}) } + commands = append(commands, []string{goCommand, "get", "-v", "./..."}) if !cfg.DontCheckGoFmt { commands = append(commands, []string{"sh", "-c", `if [ ! $(go fmt ./... | wc -l) -eq 0 ]; then echo; echo; echo please gofmt your code; echo; echo; exit 1; fi`})