gpt4 book ai didi

macos - 如何在Macbook上安装Terragrunt 0.19.x版本

转载 作者:太空宇宙 更新时间:2023-11-04 05:41:09 30 4
gpt4 key购买 nike

如何在 Macbook 上安装 terragrunt 0.19.x 版本?

我尝试了 brew install terragrunt ,它仅下载 0.18.x。

选项1:

brew install terragrunt

touch: /usr/local/Homebrew/.git/FETCH_HEAD: Permission denied
fatal: Unable to create '/usr/local/Homebrew/.git/index.lock': Permission denied
fatal: Unable to create '/usr/local/Homebrew/.git/index.lock': Permission denied
error: could not lock config file .git/config: Permission denied
==> Downloading https://homebrew.bintray.com/bottles/terragrunt-0.18.3.mojave.bottle.tar.gz
Already downloaded: /Users/rohithgundala/Library/Caches/Homebrew/downloads/f494cc7ebcfadf5e2610048e6c9f937e0151ff46cf0c226d83118e6d8ba704cc--terragrunt-0.18.3.mojave.bottle.tar.gz
==> Pouring terragrunt-0.18.3.mojave.bottle.tar.gz
🍺 /usr/local/Cellar/terragrunt/0.18.3: 3 files, 19.6MB

选项2:

# Install Terragrunt
RUN wget -q -O ${BIN_DIR}/terragrunt "https://github.com/gruntwork-io/terragrunt/releases/download/v${TERRAGRUNT_VERSION}/terragrunt_linux _amd64" \
&& chmod +x ${BIN_DIR}/terragrunt

输出:

bin/terragrunt: cannot execute binary file

最佳答案

按照 https://brew.sh/ 中的描述安装 Homebrew .

然后运行以下命令:

git clone https://github.com/cunymatthieu/tgenv.git /usr/local/Cellar/tgenv
ln -s /usr/local/Cellar/tgenv/bin/* /usr/local/bin
tgenv install 0.19.31
tfenv use 0.19.31

tgenv 是 Terragrunt 的版本管理器。 https://github.com/cunymatthieu/tgenv/blob/master/README.md

当您需要在同一台计算机上使用特定版本或多个版本时,它非常方便。

tfenv 是一个相关工具,对 terraform 命令执行相同的操作:https://github.com/tfutils/tfenv

关于macos - 如何在Macbook上安装Terragrunt 0.19.x版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57652133/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com