leonidlm / packer-builder-softlayer

A builder plugin for packer.io for a SoftLayer cloud
MIT License
38 stars 32 forks source link

Build error #8

Closed mjburrows closed 9 years ago

mjburrows commented 9 years ago

Hi,

I've followed your instructions to build the softlayer builder but I'm getting the following error.

$ go build -o ~/go/packer-builder-softlayer main.go

github.com/leonidlm/packer-builder-softlayer/builder/softlayer

builder/softlayer/builder.go:263: cannot use artifact (type Artifact) as type packer.Artifact in return argument: Artifact does not implement packer.Artifact (missing State method)

Can you shed any light on that for me?

Thanks --Maurice--

leonidlm commented 9 years ago

Hi,

Thank you for submitting this.

It seems that Artifact interface (part of packer) has a new method State. It was added as part of packer v0.7.2, and unfortunately it breaks things ...

In a meanwhile (until I or someone will fix this) you can try and build this agains an older version of packer.

leonidlm commented 9 years ago

@mjburrows I created a fix for that issue. Can you please try to build against the branch referenced in the PR and confirm that it solves your problem ?

mjburrows commented 9 years ago

Hi,

That's seems to work great, I just have an issue with my template so no artifact has been created. The instance is created but is destroyed due to root ssh not working.

For the purposes of this thread, your patch works. It builds and seems to be doing the right things;

Thanks --Maurice--