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

Cannot build packer-builder-softlayer (conflicts with multistep) #34

Closed
ldanielw1 opened this issue Nov 8, 2016 · 5 comments
Closed

Comments

@ldanielw1
Copy link

I cloned the repository per instructions in Readme of this repo, and tried to build.
At first, I ran into these errors:
builder/softlayer/step_create_ssh_key.go:4:2: cannot find package "code.google.com/p/gosshold/ssh" in any of:
/aspera/usr/builder/packer/go/src/code.google.com/p/gosshold/ssh (from $GOROOT)
/aspera/usr/builder/packer/gopath/src/code.google.com/p/gosshold/ssh (from $GOPATH)

builder/softlayer/builder.go:6:2: cannot find package "github.com/mitchellh/multistep" in any of:
/aspera/usr/builder/packer/go/src/github.com/mitchellh/multistep (from $GOROOT)
/aspera/usr/builder/packer/gopath/src/github.com/mitchellh/multistep (from $GOPATH)

builder/softlayer/ssh.go:7:2: cannot find package "golang.org/x/crypto/ssh" in any of:
/aspera/usr/builder/packer/go/src/golang.org/x/crypto/ssh (from $GOROOT)
/aspera/usr/builder/packer/gopath/src/golang.org/x/crypto/ssh (from $GOPATH)

But then I ran these commands:
go get github.com/mitchellh/multistep go build github.com/mitchellh/multistep go get golang.org/x/crypto/ssh go build golang.org/x/crypto/ssh

I also replaced
"code.google.com/p/gosshold/ssh" with "golang.org/x/crypto/ssh" in step_create_ssh_key.go, per instructions here: #27

However, now I'm running into this issue:
builder/softlayer/builder.go:202: cannot use commHost (type func("github.com/mitchellh/multistep".StateBag) (string, error)) as type func("github.com/mitchellh/packer/vendor/github.com/mitchellh/multistep".StateBag) (string, error) in field value

builder/softlayer/builder.go:203: cannot use sshConfig (type func("github.com/mitchellh/multistep".StateBag) (*"golang.org/x/crypto/ssh".ClientConfig, error)) as type func("github.com/mitchellh/packer/vendor/github.com/mitchellh/multistep".StateBag) (*"github.com/mitchellh/packer/vendor/golang.org/x/crypto/ssh".ClientConfig, error) in field value

builder/softlayer/builder.go:205: cannot use new(common.StepProvision) (type *common.StepProvision) as type "github.com/mitchellh/multistep".Step in array or slice literal:
*common.StepProvision does not implement "github.com/mitchellh/multistep".Step (wrong type for Cleanup method)
have Cleanup("github.com/mitchellh/packer/vendor/github.com/mitchellh/multistep".StateBag)
want Cleanup("github.com/mitchellh/multistep".StateBag)

What should i do to get builds running again?

@ldanielw1
Copy link
Author

This is also a problem with https://github.com/watson-platform/packer-builder-softlayer

@blakfeld
Copy link

Was there ever a resolution to this?

@ldanielw1
Copy link
Author

I had to downgrade my version of go to 1.6, and it started working.

@ldanielw1
Copy link
Author

er, that is, I had to use https://github.com/watson-platform/packer-builder-softlayer, and also downgrade go to 1.6. After that, we were in business.

@blakfeld
Copy link

Rock on, thanks for the answer!

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

2 participants