goenv: don't `inreplace` `init.bats` on HEAD installs (#88169)

init.bats no longer exists.
master
Stephen 2021-10-28 06:30:19 -06:00 committed by GitHub
parent 1fc1b75ff1
commit 1543d431bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -18,13 +18,15 @@ class Goenv < Formula
end
def install
inreplace [
inreplace_files = [
"libexec/goenv",
"plugins/go-build/install.sh",
"test/goenv.bats",
"test/init.bats",
"test/test_helper.bash",
], "/usr/local", HOMEBREW_PREFIX
]
inreplace_files << "test/init.bats" unless build.head?
inreplace inreplace_files, "/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}"