Skip to content

Commit

Permalink
Go get cannot be removed (tests can timeout)
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Jun 4, 2021
1 parent 4be45b6 commit 7eafa8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/leeway/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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`})
Expand Down

0 comments on commit 7eafa8f

Please sign in to comment.