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
go get
is deprecated as an installation command, and is only for managing dependencies.go install
is the correct command once the correct source has been checked out locally to that replace directives can be used. – Connie