Azure terratest - 构建约束排除所有 Go 文件

标签 azure terratest

当我运行 pkg/mod/github.com/gruntwork-io/terratest/test/azure ...

go test -v -run TerraformAzureKeyvaultExample

我收到以下错误:

package github.com/gruntwork-io/terratest/test/azure: build constraints exclude all Go files....

还有其他人遇到过这个问题吗?如何禁用此功能以便我可以实际运行 Azure terratest?

-泰语-

最佳答案

根据[此问题][1]尝试使用-tags azure选项,如下所示:

go test -tags azure .

这对我有用。 [1]:https://github.com/gruntwork-io/terratest/issues/557

关于Azure terratest - 构建约束排除所有 Go 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67028558/

相关文章:

go - 列出 Go 中 k8s 中的所有命名空间

go - Terratest 多个目标

azure - 404/signalr/negotiate 在 Azure 中部署的应用程序

node.js - 强制重新安装 Node 模块

go - Golang中的Terraform列表对象

go - 如何在CircleCI Go图像中使用Terraform

azure - 如何在 azure 管道的不同阶段找到工作

azure - 如何在 azure 发布管道中跨代理作业使用输出变量

c# - 在生产中使用 InteractiveBrowserCredential 对 Azure Key Vault 进行身份验证将不起作用