简体   繁体   English

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

[英]Azure terratest - Build constraints exclude all Go files

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

go test -v -run TerraformAzureKeyvaultExample

I'm getting the following error:我收到以下错误:

package github.com/gruntwork-io/terratest/test/azure: build constraints exclude all Go files.... package github.com/gruntwork-io/terratest/test/azure:构建约束排除所有 Go 文件......

Has anyone else encountered this issue?有没有其他人遇到过这个问题? How do I disable this so that I can actually run an Azure terratest?如何禁用此功能以便我可以实际运行 Azure terratest?

-thai- -泰国-

accoding to [this issue][1] try using the -tags azure option like this:根据 [this issue][1] 尝试使用-tags azure选项,如下所示:

go test -tags azure .

It worked for me.它对我有用。 [1]: https://github.com/gruntwork-io/terratest/issues/557 [1]: https://github.com/gruntwork-io/terratest/issues/557

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM