packer-cn/builder/oracle/classic
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
..
artifact.go fix artifact generation 2018-10-26 16:59:21 -07:00
builder.go Use the hashicorp/go-getter to download files 2019-03-13 12:11:58 +01:00
config.go cleanup 2018-10-27 02:04:36 -07:00
config_test.go Validate image name. 2018-04-02 11:22:15 -07:00
log.go add logging behind "PACKER_OCI_CLASSIC_LOGGING" env var 2018-01-25 16:32:34 -08:00
pv_config.go Warn if not a pv build but builder image entry is set. cleanup 2018-10-29 15:23:58 -07:00
pv_config_test.go cleanup 2018-10-26 21:59:26 -07:00
step_add_keys.go correctly building linux/windows now 2018-10-26 16:59:23 -07:00
step_attach_volume.go fix identifier changes from oracle sdk 2018-10-26 16:59:22 -07:00
step_connect_builder.go correctly building linux/windows now 2018-10-26 16:59:23 -07:00
step_create_image.go trying to wrap the base communicator config but it needs to be prepared 2018-10-26 16:59:22 -07:00
step_create_instance.go Connecting to master instance but not builder 2018-10-26 16:59:22 -07:00
step_create_ip_reservation.go remove todo 2018-10-31 12:00:33 -07:00
step_create_persistent_volume.go Clean up volumes 2018-10-26 20:02:13 -07:00
step_create_pv_builder.go some final fixes and documentation work 2018-10-26 21:56:00 -07:00
step_create_pv_master.go Connecting to master instance but not builder 2018-10-26 16:59:22 -07:00
step_list_images.go fix identifier changes from oracle sdk 2018-10-26 16:59:22 -07:00
step_security.go some final clean up 2018-10-26 16:59:23 -07:00
step_snapshot.go fix identifier changes from oracle sdk 2018-10-26 16:59:22 -07:00
step_terminate_pv_master.go fix identifier changes from oracle sdk 2018-10-26 16:59:22 -07:00
step_upload_image.go some final clean up 2018-10-26 16:59:23 -07:00