Skip to content

Commit

Permalink
Merge pull request #179452 from branchvincent/lando-cli
Browse files Browse the repository at this point in the history
lando-cli: drop unneeded `rewrite_shebang`
  • Loading branch information
BrewTestBot committed Aug 4, 2024
2 parents 01a97a4 + 98e1f52 commit 43b8d36
Showing 1 changed file with 13 additions and 18 deletions.
31 changes: 13 additions & 18 deletions Formula/l/lando-cli.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
require "language/node"

class LandoCli < Formula
include Language::Node::Shebang

desc "Cli part of Lando"
homepage "https://docs.lando.dev/cli"
url "https://github.com/lando/cli/archive/refs/tags/v3.21.2.tar.gz"
Expand All @@ -15,23 +11,22 @@ class LandoCli < Formula
end

bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: "cf0b3e960e6648fbafa20d63292b7fd8ac29047cc987d41de56465656b605c20"
sha256 cellar: :any_skip_relocation, arm64_ventura: "cf0b3e960e6648fbafa20d63292b7fd8ac29047cc987d41de56465656b605c20"
sha256 cellar: :any_skip_relocation, arm64_monterey: "cf0b3e960e6648fbafa20d63292b7fd8ac29047cc987d41de56465656b605c20"
sha256 cellar: :any_skip_relocation, sonoma: "fe4ed9406dafdaaddf8f1843e64b6d6798b1c200abe3ab66d43ae2b3792d29a1"
sha256 cellar: :any_skip_relocation, ventura: "fe4ed9406dafdaaddf8f1843e64b6d6798b1c200abe3ab66d43ae2b3792d29a1"
sha256 cellar: :any_skip_relocation, monterey: "fe4ed9406dafdaaddf8f1843e64b6d6798b1c200abe3ab66d43ae2b3792d29a1"
sha256 cellar: :any_skip_relocation, x86_64_linux: "646af2fd4cb091ea4a49556b220b4350f0455088b13dfc408b845a7daf3444d0"
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_sonoma: "9cc780f7afd14ba0bce986968eeecd8faad1d61c24f41603bcf998099b7095fe"
sha256 cellar: :any_skip_relocation, arm64_ventura: "9cc780f7afd14ba0bce986968eeecd8faad1d61c24f41603bcf998099b7095fe"
sha256 cellar: :any_skip_relocation, arm64_monterey: "9cc780f7afd14ba0bce986968eeecd8faad1d61c24f41603bcf998099b7095fe"
sha256 cellar: :any_skip_relocation, sonoma: "f1d6515baa628bd2c3666dc22d911c4d548af1f4fbed6b78bca410309b28dc62"
sha256 cellar: :any_skip_relocation, ventura: "f1d6515baa628bd2c3666dc22d911c4d548af1f4fbed6b78bca410309b28dc62"
sha256 cellar: :any_skip_relocation, monterey: "f1d6515baa628bd2c3666dc22d911c4d548af1f4fbed6b78bca410309b28dc62"
sha256 cellar: :any_skip_relocation, x86_64_linux: "9cc780f7afd14ba0bce986968eeecd8faad1d61c24f41603bcf998099b7095fe"
end

depends_on "node@18"

def install
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
# We have to replace the shebang in the main executable from "/usr/bin/env node"
rewrite_shebang detected_node_shebang, libexec/"lib/node_modules/@lando/cli/bin/lando"
bin.install_symlink Dir["#{libexec}/bin/*"]
system bin/"lando", "config", "--channel=none"
system "npm", "install", *std_npm_args
bin.install libexec.glob("bin/*")
bin.env_script_all_files libexec/"bin", LANDO_CHANNEL: "none"
end

def caveats
Expand All @@ -42,7 +37,7 @@ def caveats
end

test do
output = shell_output("#{bin}/lando config --path proxyIp")
assert_match "127.0.0.1", output
assert_match "none", shell_output("#{bin}/lando config --path channel")
assert_match "127.0.0.1", shell_output("#{bin}/lando config --path proxyIp")
end
end

0 comments on commit 43b8d36

Please sign in to comment.