11class Aicommit2 < Formula
22 desc "Reactive CLI that generates commit messages for Git and Jujutsu with AI"
33 homepage "https://github.com/tak-bro/aicommit2"
4- url "https://registry.npmjs.org/aicommit2/-/aicommit2-2.5.8 .tgz"
5- sha256 "5eea02e5c26f25517b5bb69d6f136590d516b1965c20152d41bf6096543f388a "
4+ url "https://registry.npmjs.org/aicommit2/-/aicommit2-2.5.10 .tgz"
5+ sha256 "a6fe3f4138e79966e2b0a812d4a9e7fb7a910370032eb396c8cc9e133226b65f "
66 license "MIT"
77
88 bottle do
@@ -14,6 +14,11 @@ class Aicommit2 < Formula
1414 def install
1515 system "npm" , "install" , *std_npm_args
1616 bin . install_symlink libexec . glob ( "bin/*" )
17+
18+ # remove @github/copilot prebuilt native binaries to avoid non-native arch audit
19+ %w[ prebuilds ripgrep clipboard ] . each do |dir |
20+ rm_r ( libexec /"lib/node_modules/aicommit2/node_modules/@github/copilot" /dir )
21+ end
1722 end
1823
1924 test do
@@ -28,7 +33,7 @@ def install
2833 ( testpath /"test.txt" ) . write "test content"
2934 system "git" , "add" , "test.txt"
3035
31- assert_match "No AI provider API keys configured. " , shell_output ( "#{ bin } /aicommit2 2>&1" , 1 )
36+ assert_match "No commit messages were generated " , shell_output ( "#{ bin } /aicommit2 2>&1" , 1 )
3237 shell_output ( "#{ bin } /aicommit2 config set OPENAI.key=sk-test" )
3338 assert_match "key: 'sk-test'" , shell_output ( "#{ bin } /aicommit2 config get OPENAI" )
3439 end
0 commit comments