File tree 3 files changed +15
-6
lines changed
3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ SHELL := /bin/bash
6
6
build :
7
7
set -e
8
8
mkdir -p bin
9
+ # version may be passed in via homebrew formula
9
10
if [ -z " $$ VERSION" ]; then \
10
11
VERSION=$$(git describe --tags --always --dirty || echo "dev" ) ; \
11
12
fi
Original file line number Diff line number Diff line change 1
1
class Aicommit < Formula
2
2
desc "AI-powered commit message generator"
3
3
homepage "https://github.com/coder/aicommit"
4
- version "0.6.2 "
4
+ version "0.6.3 "
5
5
url "https://github.com/coder/aicommit/archive/refs/tags/v#{ version } .tar.gz"
6
- sha256 "04a980875e97aebc0f7bbeaa183aa5542b18c6e009505babbd494fe0fe62b18e "
6
+ sha256 "f42fac51fbe334f4d4057622b152eff168f4aa28d6da484af1cea966abd836a1 "
7
7
license "CC0-1.0"
8
8
9
9
depends_on "go" => "1.21"
10
10
depends_on "make" => :build
11
11
12
12
def install
13
- version = "v#{ version } "
14
- ENV [ "VERSION" ] = version
15
- system "make" , "build" , "VERSION=#{ version } "
13
+ ENV [ "VERSION" ] = "v#{ version } "
14
+ system "make" , "build"
16
15
bin . install "bin/aicommit"
17
16
end
18
17
19
18
test do
20
- assert_match ( / aicommit \S +/ , shell_output ( "#{ bin } /aicommit version" ) )
19
+ assert_match " aicommit v #{ version } " , shell_output ( "#{ bin } /aicommit version" )
21
20
end
22
21
end
23
22
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+ VERSION=0.6.3
5
+
6
+ pushd /tmp
7
+ wget https://github.com/coder/aicommit/archive/refs/tags/v${VERSION} .tar.gz
8
+ sha256sum v${VERSION} .tar.gz
9
+ popd
You can’t perform that action at this time.
0 commit comments