Commit Graph

12 Commits

Author SHA1 Message Date
Adrien Delorme 078ba7c8c3 commit old code generation tool
for history
2019-10-15 12:56:42 +02:00
Adrien Delorme 06941a86a3 make the file builder run provisioners for testing purposes 2019-04-08 20:09:21 +02:00
Adrien Delorme a4bf94dd3c change Builder to be passed a context for cancellation
we have to to give it to our hook
2019-04-03 15:55:55 +02:00
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
Josh Soref 27dfe92f1c spelling: virtualization 2018-03-14 03:29:14 +00:00
Matthew Hooker 366dc3da0a
move multistep imports to helper.
gomvpkg -from "github.com/mitchellh/multistep" -to "github.com/hashicorp/packer/helper/multistep"
2018-01-24 17:09:15 -08:00
Matthew Hooker 81522dced0
move packer to hashicorp 2017-04-04 13:39:01 -07:00
Chris Bednarski aea70d5a72 Added acceptance test for file builder 2015-06-16 11:31:53 -07:00
Chris Bednarski 29f02d243f Had io.Copy args swapped; also use os.Create instead of os.OpenFile for MAGIC 2015-06-15 18:56:09 -07:00
Chris Bednarski e60b22d48f Changed file builder to support content or source file operation 2015-06-12 18:18:38 -07:00
Chris Bednarski 766d217ed7 Pull config into the builder 2015-06-12 17:34:52 -07:00
Chris Bednarski 64fd3a3302 Added file builder as a cheap, fast way to build something with output for testing post-processors 2015-06-12 17:24:03 -07:00