6f7be63a8a
tfenv has logic for verifying the Terraform releases that it downloads with gpg or gpgv. When gpgv is used, tfenv tries to verify the download's signature based on a key for Hashicorp that is bundled with the tfenv release in the `share` directory - but the homebrew formula is not installing that directory. Closes #42396. Signed-off-by: Chongyu Zhu <i@lembacon.com>
19 lines
532 B
Ruby
19 lines
532 B
Ruby
class Tfenv < Formula
|
|
desc "Terraform version manager inspired by rbenv"
|
|
homepage "https://github.com/tfutils/tfenv"
|
|
url "https://github.com/tfutils/tfenv/archive/v1.0.1.tar.gz"
|
|
sha256 "8121f269a1c6214d7621a06e7f40e114e0a1c38a87d5b57585405aa4862ff0f0"
|
|
head "https://github.com/tfutils/tfenv.git"
|
|
|
|
bottle :unneeded
|
|
|
|
conflicts_with "terraform", :because => "tfenv symlinks terraform binaries"
|
|
|
|
def install
|
|
prefix.install ["bin", "libexec", "share"]
|
|
end
|
|
|
|
test do
|
|
system bin/"tfenv", "list-remote"
|
|
end
|
|
end
|