Skip to content

Commit d64a347

Browse files
authored
Merge pull request #229691 from Homebrew/bump-mods-1.8.1
mods 1.8.1
2 parents 8f7b50b + 4ed4d58 commit d64a347

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

Formula/m/mods.rb

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,22 @@
11
class Mods < Formula
22
desc "AI on the command-line"
33
homepage "https://github.com/charmbracelet/mods"
4-
url "https://github.com/charmbracelet/mods/archive/refs/tags/v1.8.0.tar.gz"
5-
sha256 "d8877258877408e90889385f1d3106278e71d56223e08e35dc60b120c95c903d"
4+
url "https://github.com/charmbracelet/mods/archive/refs/tags/v1.8.1.tar.gz"
5+
sha256 "e16268ce55b9c90395116c2c8ce4d820d18d7f0b05430d64dc69686410776231"
66
license "MIT"
77
head "https://github.com/charmbracelet/mods.git", branch: "main"
88

99
bottle do
10-
sha256 cellar: :any_skip_relocation, arm64_sequoia: "4d6a77c6fae2724572a0eca25aa00f98e7fbc496256f9c4f13c2aa96adf07fb2"
11-
sha256 cellar: :any_skip_relocation, arm64_sonoma: "4d6a77c6fae2724572a0eca25aa00f98e7fbc496256f9c4f13c2aa96adf07fb2"
12-
sha256 cellar: :any_skip_relocation, arm64_ventura: "4d6a77c6fae2724572a0eca25aa00f98e7fbc496256f9c4f13c2aa96adf07fb2"
13-
sha256 cellar: :any_skip_relocation, sonoma: "b7eaae99ede15ebbe76c50e8d5f3648fc1b71bce725c8838ea10e702893cb368"
14-
sha256 cellar: :any_skip_relocation, ventura: "b7eaae99ede15ebbe76c50e8d5f3648fc1b71bce725c8838ea10e702893cb368"
15-
sha256 cellar: :any_skip_relocation, x86_64_linux: "83cfb78160e71b154cb9b047d42cc5d10bad3affa8fbcc5b0a735e540e73637b"
10+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "679478d8a2130c41981b35df3755dc526696b284912031d86dc09f75db788fee"
11+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "679478d8a2130c41981b35df3755dc526696b284912031d86dc09f75db788fee"
12+
sha256 cellar: :any_skip_relocation, arm64_ventura: "679478d8a2130c41981b35df3755dc526696b284912031d86dc09f75db788fee"
13+
sha256 cellar: :any_skip_relocation, sonoma: "75cacca99fb5c70b31d0b59fb23ba8572fa49d8f995cd3d666c3fdd37ae4d0fd"
14+
sha256 cellar: :any_skip_relocation, ventura: "75cacca99fb5c70b31d0b59fb23ba8572fa49d8f995cd3d666c3fdd37ae4d0fd"
15+
sha256 cellar: :any_skip_relocation, x86_64_linux: "0e5dd968e08dfe368e4f6e098671a827afe2904be869cea0499d9ec25e562cde"
1616
end
1717

1818
depends_on "go" => :build
1919

20-
# skip db init for `--version` and `--help` commands
21-
# upstream pr ref, https://github.com/charmbracelet/mods/pull/543
22-
patch do
23-
url "https://github.com/charmbracelet/mods/commit/d18b03d0306116108d5bc50f58a4e81b6480cb74.patch?full_index=1"
24-
sha256 "b1ae4388376787219ebdc5b1be97b2222beb83043f467588ec48ead2154be342"
25-
end
26-
2720
def install
2821
ldflags = "-s -w -X main.Version=#{version} -X main.CommitSHA=#{tap.user} -X main.CommitDate=#{time.iso8601}"
2922
system "go", "build", *std_go_args(ldflags:)
@@ -32,10 +25,8 @@ def install
3225
end
3326

3427
test do
35-
ENV["OPENAI_API_KEY"] = "faketest"
36-
3728
output = pipe_output(bin/"mods 2>&1", "Hello, Homebrew!", 1)
38-
assert_match "ERROR Could not open database", output
29+
assert_match "ERROR OpenAI authentication failed", output
3930

4031
assert_match version.to_s, shell_output("#{bin}/mods --version")
4132
assert_match "GPT on the command line", shell_output("#{bin}/mods --help")

0 commit comments

Comments
 (0)