Can't compile after upgrading to 1.6.0

22 views
Skip to first unread message

Pedro Pereira

unread,
Jun 17, 2020, 11:09:43 AM6/17/20
to Packer
Hi!

I use Packer as a library in one of my projects. After upgrading to v1.6.0 I can't compile anymore, I keep getting the following error message:

# github.com/hashicorp/packer/packer
../../../../pkg/mod/github.com/hashicorp/packer@v1.6.0/packer/progressbar.go:29:8: undefined: pb.Pool

Took a quick look through the GitHub issues but couldn't find anyone else having this problem.

Does anybody know what could be wrong?

adr...@hashicorp.com

unread,
Jun 29, 2020, 5:19:30 AM6/29/20
to Packer
Hey Thanks for opening, what version of go are you using to compile ? Do you have go deps enabled ?

It works for me with these versions of go ( godeps enabled ):

> docker run -i golang:1.13 bash -c "go get github.com/hashicorp/packer;packer"
Available commands are:
    build       build image(s) from template
[...]

> docker run -i golang:1.14 bash -c "go get github.com/hashicorp/packer;packer"

The sort of official/supported way to compile Packer is using godeps.
Reply all
Reply to author
Forward
0 new messages