前言
对于多人协作的 Terraform仓库, 在git中包含 .terraform.lock.hcl 可能会出现以下错误
1 | Initializing provider plugins... |
官方是希望提交到此仓库中, 但是针对于不同系统checksum也不一样。
解决
1 | terraform providers lock -platform=darwin_amd64 -platform=darwin_arm64 -platform=linux_amd64 |
对于多人协作的 Terraform仓库, 在git中包含 .terraform.lock.hcl 可能会出现以下错误
1 | Initializing provider plugins... |
官方是希望提交到此仓库中, 但是针对于不同系统checksum也不一样。
1 | terraform providers lock -platform=darwin_amd64 -platform=darwin_arm64 -platform=linux_amd64 |
原文作者:Momo
原文链接:https://mo.xmomo521.top/2023/04/19/terraform-lock-hcl是否应该包含在git仓库中/
发表日期:April 19th 2023, 3:18:34 pm
版权声明:本文采用知识共享署名-非商业性使用 4.0 国际许可协议进行许可
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: false
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: true
tags: true