Terraform-provider-libvirt: macOS Build Failure

Created on 12 Mar 2019  路  5Comments  路  Source: dmacvicar/terraform-provider-libvirt

Hi,

Trying to build this on macOS fails with the following build error:

~/Contributions/terraform-provider-libvirt
 (master) 0
$ make
go fmt ./libvirt .
go run golang.org/x/lint/golint -set_exit_status ./libvirt .
go vet ./libvirt
# github.com/dmacvicar/terraform-provider-libvirt/libvirt
libvirt/resource_libvirt_network.go:332:3: Printf format %s has arg network of wrong type *github.com/libvirt/libvirt-go.Network
libvirt/resource_libvirt_network.go:351:3: Printf format %s has arg network of wrong type *github.com/libvirt/libvirt-go.Network
libvirt/helpers_test.go:121:3: Printf format %s has arg virConn of wrong type *github.com/libvirt/libvirt-go.Connect
make: *** [vet-check] Error 2

You can verify this by following the same steps in the README

Aside from that:

#!bash $ brew install libvirt

To get the libvirt C libraries.

Let me know if I can help any further; if I have time I'l try to put up a PR to fix this.

good first issue help wanted

Most helpful comment

All 5 comments

hi @prologic . thx for issue. Feel free to spend a PR for this if you have time ! :+1: thx.

Same issue on Ubuntu 16.04. Was able to compile after making these changes.

This hack fixes the compile issues (at least for me): joakimfors@9f614cf

Can you put up a PR? :)

thix is merged! you can try out on master branch :rocket:

Was this page helpful?
0 / 5 - 0 ratings