mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-19 06:21:41 -04:00
Merge pull request #8394 from hashicorp/fix_iso_target_path
Don't cache when TargetPath is non-nil
This commit is contained in:
@@ -150,11 +150,12 @@ func (s *StepDownload) download(ctx context.Context, ui packer.Ui, source string
|
||||
if s.Extension != "" {
|
||||
targetPath += "." + s.Extension
|
||||
}
|
||||
targetPath, err = packer.CachePath(targetPath)
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("CachePath: %s", err)
|
||||
}
|
||||
}
|
||||
targetPath, err = packer.CachePath(targetPath)
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("CachePath: %s", err)
|
||||
}
|
||||
|
||||
lockFile := targetPath + ".lock"
|
||||
|
||||
log.Printf("Acquiring lock for: %s (%s)", u.String(), lockFile)
|
||||
|
||||
Reference in New Issue
Block a user