我正在尝试使用 Terraform 在 KVM 上配置虚拟机。安装的步骤之一是下载并安装提供程序,购买命令:
去安装 github.com/dmacvicar/terraform-provider-libvirt@latest
但它错误:
提供命名包的模块的 go.mod 文件包含一个或多个替换指令。它不得包含会导致其解释方式与主模块不同的指令。
我没有找到解决办法,有人遇到过吗?谢谢
在执行 terraform init 时出现错误,按照 terraform 官方文档,我尝试通过 terraform 创建 azure-pipeline 并为其创建了模块,但无法初始化,如果我直接在 .tf 文件中传递它,它的工作正常,但是添加到模块时,terraform init 命令本身失败。
\n\xe2\x95\xb7\n\xe2\x94\x82 Error: Failed to query available provider packages\n\xe2\x94\x82\n\xe2\x94\x82 Could not retrieve the list of available versions for provider hashicorp/mysql: provider registry registry.terraform.io does not have a provider named \n\xe2\x94\x82 registry.terraform.io/hashicorp/mysql\n\xe2\x94\x82\n\xe2\x94\x82 Did you intend to use terraform-providers/mysql? If so, you must specify that source address in each module which requires that provider. To see which \n\xe2\x94\x82 modules are currently depending on hashicorp/mysql, run the following command:\n\xe2\x94\x82 …
Run Code Online (Sandbox Code Playgroud)