From ee12004ab93e54f326896e9909ba9e6a2bd11e89 Mon Sep 17 00:00:00 2001 From: Flavio Castelli Date: Wed, 3 May 2017 11:37:08 +0200 Subject: Vendor dependencies with vndr This fixes issue #123 --- README.md | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 3be95338..0c588d3c 100644 --- a/README.md +++ b/README.md @@ -64,20 +64,11 @@ $ terraform destroy ## Building from source -1. ``` go get -u github.com/dmacvicar/terraform-provider-libvirt ``` - Install ```libvirt-devel``` package, if you get ``` fatal error: libvirt/libvirt.h: No such file or directory``` - -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 - ``` -3. .. 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. -4. Run `go install` to build the binary. You will now find the - binary at `$GOPATH/bin/terraform-provider-libvirt`. +This project uses [vndr](https://github.com/lk4d4/vndr) to vendor all its +dependencies. + +Run `go install` to build the binary. You will now find the binary at +`$GOPATH/bin/terraform-provider-libvirt`. ## Running -- cgit v1.2.3