Commit Graph

12364 Commits

Author SHA1 Message Date
Megan Marsh c317679f52 add some docs for how to do complex custom commands 2019-05-01 11:00:07 -07:00
Megan Marsh afe760e635
Merge pull request #7593 from hashicorp/fast_crossbuild
circle-ci: build each GOOS in a separate run using vendors
2019-05-01 10:09:14 -07:00
Megan Marsh 113e436e4d
Merge pull request #7589 from hashicorp/no_fslock_solaris
fix flock build errors on solaris by shadowing the pkg
2019-05-01 09:05:23 -07:00
Adrien Delorme 86b7e05ebe circle-ci: build each support GOOS in a separate run using vendors to make this faster
make bin can take more than 10min
2019-05-01 13:54:24 +02:00
Adrien Delorme b329073e54 remove trying port log as retry code will show errors
less logs !
2019-05-01 13:04:51 +02:00
Adrien Delorme 38f789eedc add error types to test for 2019-05-01 13:01:25 +02:00
Adrien Delorme 14f2d1c132 ListenRangeConfig:Listen: use the retry pkg to wait a bit in between opens 2019-05-01 12:27:32 +02:00
Adrien Delorme e14d1b8b0b add a timeout trying to open a random port 2019-05-01 12:01:34 +02:00
Adrien Delorme 2fd7adffc4 add tests for ListenRangeConfig.Listen 2019-05-01 11:46:48 +02:00
Adrien Delorme b7be4f9c74
Merge pull request #7564 from zaenk/proxmox-builder-static-ssh-host
ProxMox builder: Use ssh_host config as host for the communicator
2019-05-01 11:04:04 +02:00
Peter Pribula 14f96e8951 Fixes a typo in a comment 2019-05-01 08:39:48 +02:00
Peter Pribula 778dda9fe0 Takes static WinRM config into consideration 2019-04-30 22:26:40 +02:00
Peter Pribula 02b6e7f3de Changes `qemu_agent` config frm string to bool
Defaults to true
2019-04-30 20:23:34 +02:00
Olaf Seibert 58f8f088e2 Add image filtering on properties.
Initial commit with debugging info.
2019-04-30 16:34:40 +02:00
Adrien Delorme d9e5145de9 Shadow the flock pkg & add a noop filelock so that at least the solaris binary can be built
Without this the following error occurs:

$ GOOS=solaris go build .
# github.com/hashicorp/packer/vendor/github.com/gofrs/flock
vendor/github.com/gofrs/flock/flock_unix.go:28:22: undefined: syscall.LOCK_EX
vendor/github.com/gofrs/flock/flock_unix.go:39:22: undefined: syscall.LOCK_SH
vendor/github.com/gofrs/flock/flock_unix.go:56:12: undefined: syscall.Flock
vendor/github.com/gofrs/flock/flock_unix.go:66:12: undefined: syscall.Flock
vendor/github.com/gofrs/flock/flock_unix.go:96:12: undefined: syscall.Flock
vendor/github.com/gofrs/flock/flock_unix.go:96:42: undefined: syscall.LOCK_UN
vendor/github.com/gofrs/flock/flock_unix.go:118:21: undefined: syscall.LOCK_EX
vendor/github.com/gofrs/flock/flock_unix.go:130:21: undefined: syscall.LOCK_SH
vendor/github.com/gofrs/flock/flock_unix.go:149:9: undefined: syscall.Flock
vendor/github.com/gofrs/flock/flock_unix.go:149:44: undefined: syscall.LOCK_NB
vendor/github.com/gofrs/flock/flock_unix.go:149:44: too many errors
2019-04-30 16:01:23 +02:00
Adrien Delorme 5d9d43c01d add tests for ListenRangeConfig.Listen 2019-04-30 15:42:59 +02:00
Adrien Delorme fd63ec9a6c ListenRangeConfig.Listen: move trying port log after fslock trylock for less logs 2019-04-30 15:35:22 +02:00
Adrien Delorme 79ae62801f ListenRangeConfig: default network ( protocol ) to tcp 2019-04-30 14:55:38 +02:00
Adrien Delorme a2b0babd23
Merge pull request #7587 from hashicorp/circle_make_bin
circle-ci: run `make bin` to make sure all binaries build
2019-04-30 12:23:20 +02:00
Adrien Delorme ae46fcec01 circle-ci: run `make bin` to make sure all of our binaries can build 2019-04-30 12:06:34 +02:00
Adrien Delorme b68aa40a69
Merge pull request #7567 from creack/bump-goselect2
Update vendors for s390x support. Remove Solaris support.
2019-04-30 12:02:31 +02:00
Adrien Delorme 051f39e21d
Merge pull request #7583 from hashicorp/update_custom_plugin_docs
update docs defining Builders and PostProcessors
2019-04-30 11:58:53 +02:00
Megan Marsh e7c4cc622e
Update website/source/docs/extending/custom-post-processors.html.md
Co-Authored-By: azr <azr@users.noreply.github.com>
2019-04-30 11:56:56 +02:00
Megan Marsh 27cf53003f
Update website/source/docs/extending/custom-post-processors.html.md
Co-Authored-By: azr <azr@users.noreply.github.com>
2019-04-30 11:56:39 +02:00
Megan Marsh dd7030453f
Merge pull request #7575 from hashicorp/fix_7534
Step download: always copy local files
2019-04-29 12:35:55 -07:00
Megan Marsh e40739f332
Merge pull request #7579 from hashicorp/fix_7525
fix race condition causing hang
2019-04-29 11:03:06 -07:00
Megan Marsh 2e0f9223c8 remove all the extra debug lines 2019-04-29 10:33:41 -07:00
Adrien Delorme 1be337b383 update docs for definig Builders and PostProcessors 2019-04-29 13:16:46 +02:00
Adrien Delorme ee4f16d3a4
Merge pull request #7582 from h4ckninja/patch-1
Move the communicator pause_before_connecting
2019-04-29 10:25:44 +02:00
Adrien Delorme 65be2be38b step_download: force copy of local files only on windows 2019-04-29 09:39:21 +02:00
h4ckNinja a537888fb0
Move the communicator pause_before_connecting
block to a code block and fix the JSON
2019-04-28 23:20:13 -07:00
chhaj5236 4639f92f63
Merge pull request #7574 from lrxcy/add_support_encryption
support encryption with default service key
2019-04-27 10:35:13 +08:00
Megan Marsh 1287fcfa27 add iochan by mitchell to modules 2019-04-26 16:23:33 -07:00
Megan Marsh b84b665ba3 fix race 2019-04-26 16:05:14 -07:00
Adrien Delorme 62b2316896
Update go.mod 2019-04-26 11:34:20 +02:00
Adrien Delorme 86d26ac6f1
Merge branch 'master' into bump-goselect2 2019-04-26 11:31:29 +02:00
Adrien Delorme 200e26ea85 Step download: always copy local files
instead of symlinking to fix #7534. The longer term fix for this would be to change the go-getter so that it can leave the source file where it is & tell us where it is.

We will do this when the right time comes.
2019-04-26 10:35:18 +02:00
wb-ywq399345 0da7b918ce support encryption with default service key 2019-04-26 15:12:07 +08:00
chhaj5236 6b081cc41c
update alicloud builder to use official SDK (#7477) 2019-04-26 10:37:49 +08:00
Guillaume J. Charmes 36641e66a7 Update build.sh. Remove solaris, add mipsXX and s390x
Signed-off-by: Guillaume J. Charmes <gcharmes@magicleap.com>
2019-04-25 16:29:25 -04:00
Guillaume J. Charmes 669970717e Bump golang.org/x
Signed-off-by: Guillaume J. Charmes <gcharmes@magicleap.com>
2019-04-25 15:47:01 -04:00
Guillaume J. Charmes 40f6fcdcfd Bump goselect version to include mips/ppc/s390x
Signed-off-by: Guillaume J. Charmes <gcharmes@magicleap.com>
2019-04-25 15:40:09 -04:00
Megan Marsh e6363a1bdf
Merge pull request #7517 from hashicorp/fix_7506
fix tty related panics
2019-04-25 11:04:42 -07:00
Peter Pribula cb7b77cd90 Adds `qemu_agent` optional config parameter 2019-04-25 19:25:00 +02:00
Adrien Delorme 9be80ce65f
Merge pull request #7566 from yuriolive/patch-1
Missing comma in JSON
2019-04-25 18:45:24 +02:00
yuriolive 6ba479d723
Missing comma in JSON
JSON is invalid, is missing a comma
2019-04-25 12:58:46 -03:00
Peter Pribula c261428c4f ProxMox builder ssh communicator uses ssh_host from builder config when present 2019-04-25 11:43:12 +02:00
Adrien Delorme 781aa2ccae
Merge pull request #7563 from amydutta/azure-sdk-update
Azure SDK update
2019-04-25 11:22:09 +02:00
Adrien Delorme 71c00c200f fix panic: send on closed channel
on windows: if the term is resized when ReadString is being called and no one is reading form ws, we get a panic: send on closed channel.
It could make sense to poll getconsolescreenbufferinfo calls instead of this:
something started from the sigwinch() func

on unix: same story, sigwinch was listened upon by default but if the
signals (chan sends) were not handled, this could cause a crash

fix #7434
2019-04-25 10:49:08 +02:00
Adrien Delorme fa7b922e7a main.go: don't set TTY interface from tty.Open() in case open fails
If tty.Open fails the return tty is still nil, but the interface type will be set; meaning in go that `TTY == nil` will always be false.

fix #7506
2019-04-25 10:48:40 +02:00