packer-cn/post-processor
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
..
alicloud-import replace scrubconfig with packer.LogSecretFilter.Set 2018-08-20 15:35:55 -07:00
amazon-import remove unused imports 2019-03-04 16:42:33 -08:00
artifice move packer to hashicorp 2017-04-04 13:39:01 -07:00
checksum Use the hashicorp/go-getter to download files 2019-03-13 12:11:58 +01:00
compress Use the hashicorp/go-getter to download files 2019-03-13 12:11:58 +01:00
digitalocean-import Better varibable naming. 2019-02-13 18:55:27 -05:00
docker-import Added map structure type to config changes. 2018-12-18 00:48:58 -06:00
docker-push Change docker-push to return docker-import artifact 2018-07-20 15:27:29 -05:00
docker-save run goimports 2018-01-22 17:21:10 -08:00
docker-tag move packer to hashicorp 2017-04-04 13:39:01 -07:00
googlecompute-export googlecompute-export: set network project id to builder 2019-03-01 15:12:31 +01:00
googlecompute-import googlecompute-export: add exporter instance configs 2019-01-25 11:36:18 +01:00
manifest Add "custom_data" key to packer manifest 2019-02-01 10:41:34 +01:00
shell-local use testify instead of homegrown string compare 2018-05-21 15:26:57 -07:00
vagrant Add tmp package that offers Dir & File funcs 2018-12-12 16:35:57 +01:00
vagrant-cloud Improves test message 2019-03-05 14:39:50 +01:00
vsphere fix recurring bug #3878, make destination ESXi host selectable in config, more informative error output 2018-09-10 08:40:03 +03:00
vsphere-template Docs changes & Removed memory and quiesce options from vsphere-template 2018-11-28 11:25:01 -05:00