Skip to content

Commit

Permalink
Account for go mod download in go1.17 not updating go.sum (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalek authored Jun 24, 2021
1 parent 16563b6 commit a468961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/builder/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func GetModules(cfg Config) error {
retries := 3
failReason := "unknown"
for i := 1; i <= retries; i++ {
cmd := exec.Command(goBinary, "mod", "tidy")
cmd := exec.Command(goBinary, "mod", "download", "all")
cmd.Dir = cfg.Distribution.OutputPath
if out, err := cmd.CombinedOutput(); err != nil {
failReason = fmt.Sprintf("%s. Output: %q", err, out)
Expand Down

0 comments on commit a468961

Please sign in to comment.