diff options
author | Duncan Mac-Vicar P <dmacvicar@suse.de> | 2016-06-29 11:27:41 +0200 |
---|---|---|
committer | Duncan Mac-Vicar P <dmacvicar@suse.de> | 2016-06-29 11:27:41 +0200 |
commit | e37ad667026565b79d0573e6b70107e7cf6cedec (patch) | |
tree | dd9b175c982e392edaba091d735c68cdcdc86854 /README.md | |
parent | 634f1f013c90b4c999769357f29a7f11992159fb (diff) | |
download | terraform-provider-libvirt-e37ad667026565b79d0573e6b70107e7cf6cedec.tar terraform-provider-libvirt-e37ad667026565b79d0573e6b70107e7cf6cedec.tar.gz |
explain govend
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -66,13 +66,17 @@ $ terraform destroy 1. [Install Go](https://golang.org/doc/install) on your machine 2. [Set up Gopath](https://golang.org/doc/code.html) 3. `git clone` this repository into `$GOPATH/src/github.com/dmacvicar/terraform-provider-libvirt` -4. Run `go get` to get dependencies -5. Switch the terraform project back to the stable version, otherwise you will get a `Incompatible API version with plugin. Plugin version: 1, Ours: 2` error at runtime: +4. Get the dependencies, either with `go get` + 1. Run `go get` + 2. Switch the terraform project back to the stable version, otherwise you will get a `Incompatible API version with plugin. Plugin version: 1, Ours: 2` error at runtime: ``` cd $GOPATH/src/github.com/hashicorp/terraform git checkout v0.6.16 cd $GOPATH/src/github.com/dmacvicar/terraform-provider-libvirt ``` +5. .. or alternatively install [govend](https://github.com/govend/govend) and: + 1. Run `govend`, which will scan dependencies and download them into vendor + 2. problematic dependencies, like terraform, will be automatically in the right version thanks to the `vendor.yml` file. 6. Run `go install` to build the binary. You will now find the binary at `$GOPATH/bin/terraform-provider-libvirt`. |