Skip to content

Commit a468961

Browse files
authored
Account for go mod download in go1.17 not updating go.sum (#50)
1 parent 16563b6 commit a468961

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/builder/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func GetModules(cfg Config) error {
130130
retries := 3
131131
failReason := "unknown"
132132
for i := 1; i <= retries; i++ {
133-
cmd := exec.Command(goBinary, "mod", "tidy")
133+
cmd := exec.Command(goBinary, "mod", "download", "all")
134134
cmd.Dir = cfg.Distribution.OutputPath
135135
if out, err := cmd.CombinedOutput(); err != nil {
136136
failReason = fmt.Sprintf("%s. Output: %q", err, out)

0 commit comments

Comments
 (0)