pick up dropped error

This commit is contained in:
Megan Marsh 2019-11-20 16:16:33 -08:00
parent 9fc8ed02ae
commit cf0130b9ed

View File

@ -151,6 +151,9 @@ func (s *StepDownload) download(ctx context.Context, ui packer.Ui, source string
targetPath += "." + s.Extension
}
targetPath, err = packer.CachePath(targetPath)
if err != nil {
return "", fmt.Errorf("CachePath: %s", err)
}
}
lockFile := targetPath + ".lock"