packer/builder/amazon/chroot
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
..
builder.go Use the hashicorp/go-getter to download files 2019-03-13 12:11:58 +01:00
builder_test.go amazon/chroot: Allow creating new block device mappings !not fromScratch 2019-03-04 13:11:14 -08:00
cleanup.go move multistep imports to helper. 2018-01-24 17:09:15 -08:00
command.go builder/amazon/chroot: CommandWrapper 2013-09-30 09:33:57 -07:00
communicator.go Add tmp package that offers Dir & File funcs 2018-12-12 16:35:57 +01:00
communicator_test.go run goimports 2018-01-22 17:21:10 -08:00
copy_files.go builder/amazon/chroot: CommandWrapper 2013-09-30 09:33:57 -07:00
copy_files_test.go builder/amazon/chroot: get tests psasing on Windows 2014-04-26 12:31:55 -07:00
device.go Formatting 2014-07-29 16:15:53 -07:00
device_test.go Add volume and run tags if in us-gov/china 2018-02-05 16:39:20 -08:00
lockfile.go builder/amazon/chroot: fix compilaton on Windows 2013-07-30 21:50:59 -07:00
lockfile_unix.go Fix building packer on GOOS=solaris 2017-08-14 10:34:06 -07:00
run_local_commands.go sh -c to execute command to accomodate communicator change 2018-06-08 13:14:55 -07:00
step_attach_volume.go move UI call to before the wait; add context to these steps 2018-07-11 10:36:21 -07:00
step_attach_volume_test.go builder/amazon/chroot: switch func type to interface 2013-07-30 17:56:42 -07:00
step_check_root_device.go fix imports 2018-01-24 17:09:17 -08:00
step_chroot_provision.go fix imports 2018-01-24 17:09:17 -08:00
step_copy_files.go fix imports 2018-01-24 17:09:17 -08:00
step_copy_files_test.go builder/amazon/chroot: switch func type to interface 2013-07-30 17:56:42 -07:00
step_create_volume.go Add support to support non-gp2 volume types for building from_scratch 2018-09-06 13:22:09 -07:00
step_create_volume_test.go Enable setting the volume type when building with the Amazon Chroot builder 2018-09-06 13:22:09 -07:00
step_early_cleanup.go fix imports 2018-01-24 17:09:17 -08:00
step_early_unflock.go fix imports 2018-01-24 17:09:17 -08:00
step_flock.go fix imports 2018-01-24 17:09:17 -08:00
step_flock_test.go builder/amazon/chroot: let go of flock earlier for parallelism 2013-07-30 22:25:33 -07:00
step_instance_info.go fix imports 2018-01-24 17:09:17 -08:00
step_mount_device.go builder/amazon/chroot: Fix building PV images with mount_partition 2019-02-22 18:21:01 -08:00
step_mount_device_test.go builder/amazon/chroot: switch func type to interface 2013-07-30 17:56:42 -07:00
step_mount_extra.go fix imports 2018-01-24 17:09:17 -08:00
step_mount_extra_test.go builder/amazon/chroot: switch func type to interface 2013-07-30 17:56:42 -07:00
step_post_mount_commands.go fix imports 2018-01-24 17:09:17 -08:00
step_pre_mount_commands.go fix imports 2018-01-24 17:09:17 -08:00
step_prepare_device.go fix imports 2018-01-24 17:09:17 -08:00
step_register_ami.go amazon/chroot: Allow creating new block device mappings !not fromScratch 2019-03-04 13:11:14 -08:00
step_register_ami_test.go amazon/chroot: Allow creating new block device mappings !not fromScratch 2019-03-04 13:11:14 -08:00
step_snapshot.go move UI call to before the wait; add context to these steps 2018-07-11 10:36:21 -07:00