当我运行terraspace bundle时,会看到以下错误消息:
Bundling with Terrafile...
ERROR: There was a git error
Current dir: /private/tmp/terraspace/bundler/cache/github.com/cloudposse/terraform-aws-cloudfront-s3-cdn
The error occur when running:
git pull 2>&1
fatal: not a git repository (or any of the parent directories): .git只有我的Terrafile中的某些模块似乎有这个问题,因为我可以通过注释那些失败的模块来绕过这个问题。
发布于 2021-09-11 22:34:57
我决定在每个失败模块上尝试rm -rf /private/tmp/terraspace/bundler/cache/<module>。
在我这样做之后,正确安装了模块:
Bundling with Terrafile...
Exporting aws-iam-role
Exporting ecr
Exporting iam-system-user
Exporting s3-cdn
Modules saved to vendor/modules我不确定损坏缓存的根本原因。
https://stackoverflow.com/questions/69147178
复制相似问题