Commit Graph

23 Commits

Author SHA1 Message Date
Adrien Delorme 9f82b75e57 Use the hashicorp/go-getter to download files
* removed packer.Cache and references since packer.Cache is never used except in the download step. The download step now uses the new func packer.CachePath(targetPath) for this, the behavior is the same.
* removed download code from packer that was reimplemented into the go-getter library: progress bar, http download restart, checksuming from file, skip already downloaded files, symlinking, make a download cancellable by context.
* on windows if packer is running without symlinking rights and we are getting a local file, the file will be copied instead to avoid errors.
* added unit tests for step_download that are now CI tested on windows, mac & linux.
* files are now downloaded under cache dir `sha1(filename + "?checksum=" + checksum) + file_extension`
* since the output dir is based on the source url and the checksum, when the checksum fails, the file is auto deleted.
* a download file is protected and locked by a file lock,
* updated docs
* updated go modules and vendors
2019-03-13 12:11:58 +01:00
Megan Marsh 6e442e616c
Merge pull request #7352 from hashicorp/research_7299
use a tty to ui.Ask
2019-03-07 09:47:01 -08:00
Megan Marsh 5aeab4ec06
Merge pull request #7300 from kmbulebu/openstack_app_creds
OpenStack: Support Application Credential Authentication
2019-03-05 13:11:51 -08:00
Adrien Delorme 7f5c794e5f add go-tty vendor 2019-02-27 17:01:02 +01:00
Megan Marsh 1c3bc70b12
Merge pull request #7338 from chhaj5236/feature/update_aliyun_sdk
alicloud: update aliyun sdk to support eu-west-1 region
2019-02-25 09:32:02 -08:00
bozhi.ch f751e20b7e update aliyun sdk to support eu-west-1 region 2019-02-23 11:43:35 +08:00
Miłosz Smółka 49889802b9 Update go.sum 2019-02-10 13:22:10 +01:00
Kevin Bulebush 947a172a80 Updated to latest gophercloud/utils with app cred support. 2019-02-09 22:52:02 -05:00
Kevin Bulebush 4025d1da2e Updated gophercloud to revision with app creds 2019-02-09 22:52:02 -05:00
Kevin Bulebush 349c0beb7b Updated gophercloud in go.mod 2019-02-09 22:52:02 -05:00
Miłosz Smółka 228829139b Merge branch 'master' into hyperone 2019-02-07 14:12:13 +01:00
Rohit Yadav 5af1c89e6e go.sum: tidy and remove old go-cloudstack dependency checksums
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2019-02-03 01:55:25 +05:30
Rohit Yadav 47e03a815f vendor: update go-cloudstack v2.4.1
This fixes #7263 and updates the dependency go-cloudstack v2.4.1

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2019-02-02 00:56:40 +05:30
Adrien Delorme ca180d27fb update/fix some more modules 2019-02-01 17:53:56 +01:00
Davi Vidal 2bc4e6aec6 Fixes checksum for dependencies for Go 1.11.4+ 2019-02-01 12:38:28 +01:00
Adrien Delorme 9099bf8a4a GO111MODULE=on go get github.com/aws/aws-sdk-go@v1.16.24 2019-01-24 13:07:34 +01:00
Miłosz Smółka 3ce05c7c26 Add acceptance tests 2019-01-23 14:59:28 +01:00
Miłosz Smółka be30415395 Add HyperOne builder 2019-01-23 14:04:05 +01:00
Adrien Delorme e6442db0c8 GO111MODULE=on go mod tidy 2019-01-18 12:48:57 +01:00
Adrien Delorme 9cf0b2944d GO111MODULE=on go get github.com/aws/aws-sdk-go@v1.16.21 2019-01-18 12:48:57 +01:00
Adrien Delorme 7655d2efb2
Add tencent cloud builder (#7135 & #6839) 2018-12-20 17:09:44 +01:00
Adrien Delorme 6b6bfac87e go mod verify & go get github.com/hetznercloud/hcloud-go 2018-12-11 17:46:54 +01:00
Adrien Delorme 958e8ef09c go mod init github.com/hashicorp/packer 2018-11-12 16:46:21 +01:00