11class 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
@@ -17,13 +17,6 @@ class Mods < Formula
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