leonidlm / packer-builder-softlayer

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

Packer-builder-softlayer is not working with newer versions #36

Open srikgali opened 6 years ago

srikgali commented 6 years ago

Packer-builder-softlayer is not working with newer versions,

I am getting below error when i run

[root@hostname packer-builder-softlayer]# go build -o /usr/local/packer/packer-builder-softlayer main.go

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

builder/softlayer/builder.go:200:28: cannot use communicator.StepConnect literal (type communicator.StepConnect) as type "github.com/hashicorp/multistep".Step in array or slice literal: communicator.StepConnect does not implement "github.com/hashicorp/multistep".Step (wrong type for Cleanup method) have Cleanup("github.com/hashicorp/packer/helper/multistep".StateBag) want Cleanup("github.com/hashicorp/multistep".StateBag) builder/softlayer/builder.go:202:8: cannot use commHost (type func("github.com/hashicorp/multistep".StateBag) (string, error)) as type func("github.com/hashicorp/packer/helper/multistep".StateBag) (string, error) in field value builder/softlayer/builder.go:203:13: cannot use sshConfig (type func("github.com/hashicorp/multistep".StateBag) ("golang.org/x/crypto/ssh".ClientConfig, error)) as type func("github.com/hashicorp/packer/helper/multistep".StateBag) ("github.com/hashicorp/packer/vendor/golang.org/x/crypto/ssh".ClientConfig, error) in field value builder/softlayer/builder.go:205:6: cannot use new(common.StepProvision) (type common.StepProvision) as type "github.com/hashicorp/multistep".Step in array or slice literal: *common.StepProvision does not implement "github.com/hashicorp/multistep".Step (wrong type for Cleanup method) have Cleanup("github.com/hashicorp/packer/helper/multistep".StateBag) want Cleanup("github.com/hashicorp/multistep".StateBag)

Any idea?