terra-farm / terraform-provider-virtualbox

VirtualBox provider for Terraform
https://terra-farm.github.io/provider-virtualbox/
MIT License
323 stars 136 forks source link

missing dependency #99

Closed toyg closed 2 years ago

toyg commented 3 years ago
$> go get github.com/terra-farm/terraform-provider-virtualbox
package github.com/vmihailenco/msgpack/codes: cannot find package "github.com/vmihailenco/msgpack/codes" in any of:
    /usr/local/opt/go/libexec/src/github.com/vmihailenco/msgpack/codes (from $GOROOT)
    /Users/toyg/src/Go/src/github.com/vmihailenco/msgpack/codes (from $GOPATH)

vmihailenco/msgpack has to be installed manually for this app to build. If this is expected, it should be mentioned in readme or documentation.

cftang0827 commented 3 years ago

I have same issue here.

cftang0827 commented 3 years ago

there's a workaround way, you can build it from source and it will be in your $GOPATH/bin/ just use make build and it will build with no error.

fortunella commented 3 years ago

Build runs without error - as you said. But what to do next to use the provider in terraform?

VoyTechnology commented 3 years ago

@fortunella Since #90 you can use the version from the Terraform Registry, no need to build locally:

https://registry.terraform.io/providers/terra-farm/virtualbox/latest

I will update the README to reflect these changes.


I have tried to go get in an empty Docker container and it worked fine. I can't reproduce the issue.

VoyTechnology commented 2 years ago

The README has been updated so you can use the latest tag instead of building from source.

I will close this issue since I was unable to reproduce it, both locally (on windows, linux or MacOS), and in CI.