Home > Blockchain >  go install github.com/dmacvicar/terraform-provider-libvirt@latest - shows error
go install github.com/dmacvicar/terraform-provider-libvirt@latest - shows error

Time:11-02

I am trying to Provision VMs on KVM with Terraform. one of the steps in installations is to download and install the provider buy the command:

go install github.com/dmacvicar/terraform-provider-libvirt@latest

but it errors:

The go.mod file for the module providing named packages contains one or more replace directives. It must not contain directives that would cause it to be interpreted differently than if it were the main module.

I didn't find a solution, is someone has faced it? thank you

CodePudding user response:

You must use go get.

  • go get - verify if packages need to be downloaded, download if needed then compile

  • go install - skip the part with packages download, just compile (this will throw an error if any packages are missing)

  • Related