You can always try:

docker run -v $PWD:/host -it golang bash
go get github.com/mitchellh/packer && cd src/github.com/mitchellh/packer
XC_ARCH=amd64 XC_OS=darwin make dev
cp pkg/*/packer /host/

XC_OS should be: darwin, windows, or linux



On 26 October 2016 at 20:27, Alvaro Miranda Aguilera <[email protected]>
wrote:

> Works on linux:
>
> 0 alvaro@alvaro-XPS-15-9550 ~/Downloads/gopath $ go get
> github.com/mitchellh/packer
>
>
> 0 alvaro@alvaro-XPS-15-9550 ~/Downloads/gopath $ cd src/
> github.com/mitchellh/packer/
> 0 alvaro@alvaro-XPS-15-9550 ~/Downloads/gopath/src/github.
> com/mitchellh/packer (master) $ make dev
> go get github.com/mitchellh/gox
> go get golang.org/x/tools/cmd/stringer
> go get github.com/kardianos/govendor
> govendor sync
> ==> Removing old directory...
> ==> Building...
> Number of parallel builds: 7
>
> -->     linux/amd64: github.com/mitchellh/packer
> ==> Copying binaries for this platform...
>
> ==> Results:
> total 44M
> -rwxr-xr-x 1 alvaro alvaro 44M okt 26 20:25 packer
> 0 alvaro@alvaro-XPS-15-9550 ~/Downloads/gopath/src/github.
> com/mitchellh/packer (master) $ bin/packer version
> Packer v0.11.1.dev (a66d125fc9747f90baba048cb6d42547cda458b7)
>
> 0 alvaro@alvaro-XPS-15-9550 ~/Downloads/gopath/src/github.
> com/mitchellh/packer (master) $ go version
> go version go1.6.3 linux/amd64
> 0 alvaro@alvaro-XPS-15-9550 ~/Downloads/gopath/src/github.
> com/mitchellh/packer (master) $
>
>
> On Wed, Oct 26, 2016 at 1:13 AM, Dan Tran <[email protected]> wrote:
>
>> Hi
>>
>> Attempt to build packer with GO 1.6.3 ( make) and it stops here
>>
>> govendor sync
>>         Ensures the contents of the vendor folder matches the vendor file.
>>         Options:
>>                 -n           dry run, print out action only
>>                 -insecure    allow downloading over insecure connection
>>
>>
>> I need to test a fix at  packer for 0.11.1 dev build
>>
>> any suggestion?
>>
>>
>> very appreciate any help.
>>
>> Thanks
>>
>> -Dan
>>
>> --
>> This mailing list is governed under the HashiCorp Community Guidelines -
>> https://www.hashicorp.com/community-guidelines.html. Behavior in
>> violation of those guidelines may result in your removal from this mailing
>> list.
>>
>> GitHub Issues: https://github.com/mitchellh/packer/issues
>> IRC: #packer-tool on Freenode
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Packer" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/packer-tool/afac5f44-626b-4371-b9bd-47f25bf619af%40googlegroups.com
>> <https://groups.google.com/d/msgid/packer-tool/afac5f44-626b-4371-b9bd-47f25bf619af%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Alvaro
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/packer-tool/CAHqq0eyvZMYYGsSPDcsq1t%2BkqT8kHwu6RY4RCGSfb7E6G%
> 3D2yOw%40mail.gmail.com
> <https://groups.google.com/d/msgid/packer-tool/CAHqq0eyvZMYYGsSPDcsq1t%2BkqT8kHwu6RY4RCGSfb7E6G%3D2yOw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CALz9Rt8ikg3CtUqd_GTUKAw5iC5kmrHbdi46q0h%3DkR5s%2B%2BFqyg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to