try to use isos inplace whatever the os
This commit is contained in:
parent
a19214afeb
commit
8e6bad209b
|
@ -198,9 +198,7 @@ func (s *StepDownload) download(ctx context.Context, ui packer.Ui, source string
|
||||||
ProgressListener: ui,
|
ProgressListener: ui,
|
||||||
Pwd: wd,
|
Pwd: wd,
|
||||||
Mode: getter.ModeFile,
|
Mode: getter.ModeFile,
|
||||||
}
|
Inplace: true,
|
||||||
if runtime.GOOS == "windows" {
|
|
||||||
req.Inplace = true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch op, err := defaultGetterClient.Get(ctx, req); err.(type) {
|
switch op, err := defaultGetterClient.Get(ctx, req); err.(type) {
|
||||||
|
|
Loading…
Reference in New Issue