Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

packer >= 0.9.0 compatibility #17

Open
dsbaars opened this issue May 1, 2016 · 3 comments
Open

packer >= 0.9.0 compatibility #17

dsbaars opened this issue May 1, 2016 · 3 comments

Comments

@dsbaars
Copy link

dsbaars commented May 1, 2016

core: Plugins that implement the Communicator interface must now implement a DownloadDir method [GH-2618]
source: https://github.com/mitchellh/packer/blob/master/CHANGELOG.md

I don't have any experience with go yet, otherwise I'd try to fix it myself. I was hoping this will be useful for LXC 2.0 container creation

$ gox -os=linux -arch=amd64 -output=pkg/{{.OS}}_{{.Arch}}/packer-builder-lxc
Number of parallel builds: 3

-->     linux/amd64: github.com/ustream/packer-builder-lxc

1 errors occurred:
--> linux/amd64 error: exit status 2
Stderr: # github.com/ustream/packer-builder-lxc/builder/lxc
builder/lxc/builder.go:69: cannot use common.MultistepDebugFn(ui) (type "github.com/mitchellh/packer/vendor/github.com/mitchellh/multistep".DebugPauseFn) as type "github.com/mitchellh/multistep".DebugPauseFn in field value
builder/lxc/config.go:34: cannot use &md (type *"github.com/mitchellh/mapstructure".Metadata) as type *"github.com/mitchellh/packer/vendor/github.com/mitchellh/mapstructure".Metadata in field value
builder/lxc/step_provision.go:28: cannot use comm (type *LxcAttachCommunicator) as type packer.Communicator in argument to hook.Run:
        *LxcAttachCommunicator does not implement packer.Communicator (missing DownloadDir method)
@oker1
Copy link
Contributor

oker1 commented May 4, 2016

Thanks for reporting!

I Haven't tried LXC 2.0 yet, so I can't tell you if it will work. If the commands didn't change much, there's a possibility :)

@korotovsky
Copy link

This affects me too. Any news?

@kasper-agg
Copy link

kasper-agg commented Aug 8, 2017

I'm having the same issue, but before I even have the repo:
go get github.com/ustream/packer-builder-lxc

# github.com/ustream/packer-builder-lxc/builder/lxc
src/github.com/ustream/packer-builder-lxc/builder/lxc/builder.go:69: cannot use common.MultistepDebugFn(ui) (type "github.com/mitchellh/packer/vendor/github.com/mitchellh/multistep".DebugPauseFn) as type "github.com/mitchellh/multistep".DebugPauseFn in field value
src/github.com/ustream/packer-builder-lxc/builder/lxc/config.go:34: cannot use &md (type *"github.com/mitchellh/mapstructure".Metadata) as type *"github.com/mitchellh/packer/vendor/github.com/mitchellh/mapstructure".Metadata in field value
src/github.com/ustream/packer-builder-lxc/builder/lxc/step_provision.go:28: cannot use comm (type *LxcAttachCommunicator) as type "github.com/mitchellh/packer/packer".Communicator in argument to hook.Run:
	*LxcAttachCommunicator does not implement "github.com/mitchellh/packer/packer".Communicator (missing DownloadDir method)

I'm using go-1.8 through a ppa on ubuntu 16.04 since 1.6 did not get the packer-builder-lxc repository with go get.
I don't think it's due to LXC version:

LXC 2.0 is fully API compatible with LXC 1.0.

source

Seems to be an issue in mitchellh/multistep, but not sure, any advice?

edit
Going back to 1.6 yelds

package context: unrecognized import path "context" (import path does not begin with hostname)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants