@@ -12,16 +12,17 @@ class Llgo < Formula
12
12
end
13
13
14
14
bottle do
15
- sha256 cellar : :any , arm64_sequoia : "b10ff1d39f288838a7b5a13a63a3e16804d8ea628cdfd6696f0af887433971fc"
16
- sha256 cellar : :any , arm64_sonoma : "d0754d188737c058658ed2a70dc35766fcda1749dfe5e95f546179d33c4fd8ea"
17
- sha256 cellar : :any , arm64_ventura : "915d149d72ed455e7a710084ce4b2b7717354c11080a7d908b1ae55b010f14cf"
18
- sha256 cellar : :any , sonoma : "bf3b8f7feffaaaeb6db5553b06276f0d16e659395f5190ff2e41833c5f237c17"
19
- sha256 cellar : :any , ventura : "5a52937041fcdcdc649157cd0f8493737d6988d1213ad1d664a63fca8153c2ff"
20
- sha256 x86_64_linux : "90b74a9797489b39973dbc58bf1abfaf1a88018be88665517fdd309f91b38e14"
15
+ rebuild 1
16
+ sha256 cellar : :any , arm64_sequoia : "0947ad7513fea18ae89e066e0bbb4ed3c6dc0299ead7d69a4cb57b6f3941d36f"
17
+ sha256 cellar : :any , arm64_sonoma : "7de761a6c845ba0a46d27164595fdf5c779cab4fea67cdcc927b696eab7b97d9"
18
+ sha256 cellar : :any , arm64_ventura : "cacaa00dc85e867d7c346af23319ecc37dd1518acadacb1329072f2764beb52a"
19
+ sha256 cellar : :any , sonoma : "c1d46f74280d51ae465daa27d47c9e06e4da328d52f74a4b871551d4ccfffab5"
20
+ sha256 cellar : :any , ventura : "a6022098d5a0ef86f343ce6aca0c983caa53b8c836ab620212da8b459359631b"
21
+ sha256 x86_64_linux : "2486bc3ddd7c27fe03c9ae10df73553c09b9f21b3d4dc94b55f99da632dbbf5f"
21
22
end
22
23
23
24
depends_on "bdw-gc"
24
- depends_on "go"
25
+ depends_on "go@1.24 "
25
26
depends_on "libffi"
26
27
depends_on "libuv"
27
28
depends_on "lld@19"
@@ -62,7 +63,7 @@ def install
62
63
63
64
libexec . install "LICENSE" , "README.md" , "go.mod" , "go.sum" , "runtime"
64
65
65
- path_deps = %w[ lld llvm go pkgconf ] . map { |name | find_dep ( name ) . opt_bin }
66
+ path_deps = %w[ lld llvm go@1.24 pkgconf ] . map { |name | find_dep ( name ) . opt_bin }
66
67
script_env = { PATH : "#{ path_deps . join ( ":" ) } :$PATH" }
67
68
68
69
if OS . linux?
@@ -80,8 +81,9 @@ def install
80
81
end
81
82
82
83
test do
83
- goos = shell_output ( "go env GOOS" ) . chomp
84
- goarch = shell_output ( "go env GOARCH" ) . chomp
84
+ go = find_dep ( "[email protected] " )
85
+ goos = shell_output ( "#{ go . opt_bin } /go env GOOS" ) . chomp
86
+ goarch = shell_output ( "#{ go . opt_bin } /go env GOARCH" ) . chomp
85
87
assert_equal "llgo v#{ version } #{ goos } /#{ goarch } " , shell_output ( "#{ bin } /llgo version" ) . chomp
86
88
87
89
# Add bdw-gc library path to LD_LIBRARY_PATH, this is a workaround for the libgc.so not found issue
@@ -123,7 +125,7 @@ def install
123
125
( testpath /"go.mod" ) . write <<~GOMOD
124
126
module hello
125
127
GOMOD
126
- system "go" , "get" , "github.com/goplus/lib"
128
+ system go . opt_bin / "go" , "get" , "github.com/goplus/lib"
127
129
# Test llgo run
128
130
assert_equal "Hello LLGO by fmt.Println\n " \
129
131
"Hello LLGO by c.Printf\n " ,
0 commit comments