[packer dev build] govendor sync failing

204 views
Skip to first unread message

Dan Tran

unread,
Oct 25, 2016, 7:13:21 PM10/25/16
to Packer
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

Alvaro Miranda Aguilera

unread,
Oct 26, 2016, 2:27:54 PM10/26/16
to packe...@googlegroups.com
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
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) $ 


--
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 packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/afac5f44-626b-4371-b9bd-47f25bf619af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Rickard von Essen

unread,
Oct 26, 2016, 5:42:46 PM10/26/16
to packe...@googlegroups.com
You can always try:

docker run -v $PWD:/host -it golang bash
XC_ARCH=amd64 XC_OS=darwin make dev
cp pkg/*/packer /host/

XC_OS should be: darwin, windows, or linux



Dan Tran

unread,
Oct 28, 2016, 10:46:22 AM10/28/16
to Packer
I think it has something to do with my company  internal web proxy. still looking

-D
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.



--
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 packer-tool...@googlegroups.com.

Alvaro Miranda Aguilera

unread,
Oct 29, 2016, 7:46:59 AM10/29/16
to packe...@googlegroups.com
long time a go there was a bug open in GO that go didn't work with https / user in proxy

and then was other in special characters in the password.

If you have a proxy:

myproxy=http://user:pass@server:port

export http_proxy=$myproxy

export https_proxy=$myproxy

export HTTP_PROXY=$myproxy

export HTTPS_PROXY=$myproxy

before go get

if you have special character like # or : @ in the password, try to escape to http values ie `%20C` (not an actual one, just to show how they look) them.

Alvaro.

To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/aa3ef20e-b7a8-4613-80ba-a094897e75b1%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Dan Tran

unread,
Nov 6, 2016, 12:21:10 PM11/6/16
to Packer
I managed to build Packer using instructions at CONTRIBUTING.md ( ie having Go to fetch the source). in my case, I had Jenkins to fetch the source.  I am very interested to hear if anyone able to do it via Jenkins to clone package to Jenkins $WORKSPACE and work from there. 

BTW latest packer dev build works for my vmware ova build now It is broken after 0.8.6 release.  

Thanks for all the helps

Dan Tran

unread,
Nov 6, 2016, 12:28:46 PM11/6/16
to Packer
here is my step ( assume Go 1.6 is in execution path)

export GOPATH=$WORKSPACE
PATH=$PATH:$GOPATH/bin
make dev
cd $GOPATH/bin
jar -cMf packer.zip packer

Alvaro Miranda Aguilera

unread,
Nov 6, 2016, 1:11:10 PM11/6/16
to packe...@googlegroups.com
hello, just being curious what the last line does?

should be

zip -f packer.zip packer


--
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 packer-tool+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Dan Tran

unread,
Nov 6, 2016, 2:49:29 PM11/6/16
to Packer
Yes it is,   i am just too familiar with the jar command

On Sunday, November 6, 2016 at 10:11:10 AM UTC-8, Alvaro Miranda Aguilera wrote:
hello, just being curious what the last line does?

should be

zip -f packer.zip packer


--
Alvaro

Reply all
Reply to author
Forward
0 new messages