Commit Graph

53 Commits (774a168957f14cedc2dd67b9bb2ea329fcd5d294)

Author SHA1 Message Date
Sylvia Moss aa52e690ee
Update go-getter and add samba shared files tests to step_download (#8954)
6 years ago
Adrien Delorme 0fa60c68fb
Drop the iso_checksum_type & iso_checksum_url fields (#8437)
6 years ago
Adrien Delorme 8e6bad209b try to use isos inplace whatever the os
6 years ago
Adrien Delorme a19214afeb Allow to use isos in place
6 years ago
Moss e020da49f3 Add iso file name when targetPath is absolute
6 years ago
Megan Marsh 90bdcf58bd update step_download to return an ActionContinue if the URls field is empty. this allows us to simplify the hyperv builder, and is still safe because all other builders and uses of step_download already validate that the iso url is not empty if that's what they need, most of them inside of the IsoConfig prepare function.
6 years ago
Megan Marsh cf0130b9ed pick up dropped error
7 years ago
Megan Marsh 9fc8ed02ae Don't cache when TargetPath is non-nil; this messes up use of the iso_target_path iso template option.
7 years ago
Stephen Fox a6830f8348 Move 'ui' variable closer to invocation.
7 years ago
Stephen Fox e362d2f3ee Use 'log.Printf()' for StepDownload debug instead of 'ui.Say()'.
7 years ago
Megan Marsh e9549d2688 add test for local fs download
7 years ago
Megan Marsh 197a283b5e actually check for filepath being present
7 years ago
Megan Marsh 64f16474f8 fix double slash conundrum
7 years ago
Megan Marsh 88d589cc88 enable smb share double backslash pathing too
7 years ago
Megan Marsh 12471a8b06 use file getter for smb shares
7 years ago
Adrien Delorme d9e5145de9 Shadow the flock pkg & add a noop filelock so that at least the solaris binary can be built
7 years ago
Adrien Delorme 65be2be38b step_download: force copy of local files only on windows
7 years ago
Adrien Delorme 200e26ea85 Step download: always copy local files
7 years ago
Adrien Delorme 5f0259fe89 step download: don't fail when checksum_type is not set
7 years ago
Adrien Delorme 4dc12701d3 step_download: display clearer error messages, also when the checksum is not set
7 years ago
Adrien Delorme 9ac8d8aed8 step download: ovf files usually point to a file in the same directory, using them in place is the only way
7 years ago
Adrien Delorme 9f82b75e57 Use the hashicorp/go-getter to download files
7 years ago
Vadym Haidamaka f736e2aba5 Print VerifyChecksum log for the download as ui.Message output
7 years ago
Adrien Delorme a11f985e3c revert unecessary check
8 years ago
Adrien Delorme 541c68aed5 add StackableProgressBar struct that will refresh/show dl status for multiple files
8 years ago
Adrien Delorme ddd96c513b first draft at self refreshing loading bar centralized/controlled by Ui
8 years ago
Ali Rizvi-Santiago cf9bbe3ecf Incorporated the hack demonstrated by @SwampDragons in order to deal with packer.rpc.Ui not exporting any information about what it's doing to anybody.
8 years ago
Ali Rizvi-Santiago 5726927cba Moved the progress bar out of packer.Ui and unlinked it out of all the packer.Ui implementations. Split up the terminal-related functions into a separate terminal.go and calculate the progress bar width by traversing through packer.Ui to avoid the issue with github.com/ugorji/go/codec serializing private members (or unsafe pointers) of structs. Shuffled some arguments around in getConsoleScreenBufferInfo in common/terminal_windows.go so that the interface forces the user to correctly declare a _CONSOLE_SCREEN_BUFFER_INFO type.
8 years ago
Ali Rizvi-Santiago 0f10032b3d Moved the progress bar from common to the packer.UI interface and refactored it so that the terminal width is calculated based on each interface which returns a custom progressbar specific to its ui.
8 years ago
Ali Rizvi-Santiago fd2fef8738 Added support for the progress bar to automatically determine its width using the minimum length from a packer.UI and the terminal dimensions via kernel32.GetConsoleScreenBufferInfo or an ioctl (TIOCGWINSZ) to "/dev/tty".
8 years ago
Ali Rizvi-Santiago 16ecb3ad9a Reverted removal of progress-bar that was done by commit 5d97b105a8 and added some missing arguments that were missed during the rebase. Modified the default progress bar's width to 80 as a result of the conversation on PR #5851.
8 years ago
Adrien Delorme a5587e30ec log wether the file was transfered or is just being inplace referenced
8 years ago
Adrien Delorme 6b3844a64f
Revert "allow to use ISO images in-place v.s. copying them"
8 years ago
Adrien Delorme c744e8b2bb make download messages less redudant and more simple
8 years ago
Adrien Delorme d7d4aed51c be even more precise
8 years ago
Adrien Delorme 2b3ea29970 show more precise error download/copy/referencing messages
8 years ago
Adrien Delorme 863222b1e2 Also use the terminology Inplace in DownloadConfig for clarity/consistency
8 years ago
Adrien Delorme 82e480a285 allow to use ISO images inplace v.s. copying them
8 years ago
Seth Vargo b17b333e29
Add a common package for specifying useragent and adopt that everywhere
8 years ago
Josh Soref 5178dd36e8 spelling: regular
8 years ago
Matthew Hooker 7a189a83a1
fix imports
8 years ago
Matthew Hooker a831d522be
change run signatures
8 years ago
Matthew Hooker 366dc3da0a
move multistep imports to helper.
8 years ago
Vladislav Rassokhin af8a0c46c5 Do not re-download iso multiple times from different urls
9 years ago
Matthew Hooker 81522dced0
move packer to hashicorp
9 years ago
Mitchell Hashimoto e65e2d104a common: StepDownload can force an extension
11 years ago
Mitchell Hashimoto 8dbe0f065c Remove version from "packer" package
12 years ago
Mark Rushakoff 4548495116 StepDownload uses packer version as user agent
12 years ago
Mitchell Hashimoto 483cda18c1 builder/vmware: make things more Go-like
13 years ago
Doug MacEachern a828a9a064 builder/vmware: new driver to support building images directly on ESX
13 years ago