042425cde4
Closes #35545. Signed-off-by: Chongyu Zhu <i@lembacon.com>
22 lines
672 B
Ruby
22 lines
672 B
Ruby
class Goenv < Formula
|
|
desc "Go version management"
|
|
homepage "https://github.com/syndbg/goenv"
|
|
url "https://github.com/syndbg/goenv/archive/1.23.3.tar.gz"
|
|
sha256 "1559f2907ee0339328466fe93f3c9637b7674917db81754412c7f842749e3201"
|
|
version_scheme 1
|
|
head "https://github.com/syndbg/goenv.git"
|
|
|
|
bottle :unneeded
|
|
|
|
def install
|
|
inreplace "libexec/goenv", "/usr/local", HOMEBREW_PREFIX
|
|
prefix.install Dir["*"]
|
|
%w[goenv-install goenv-uninstall go-build].each do |cmd|
|
|
bin.install_symlink "#{prefix}/plugins/go-build/bin/#{cmd}"
|
|
end
|
|
end
|
|
|
|
test do
|
|
assert_match "Usage: goenv <command> [<args>]", shell_output("#{bin}/goenv help")
|
|
end
|
|
end
|