Skip to content

Commit cb456be

Browse files
BrewTestBotchenrui333
authored andcommitted
macpine 1.1.4
macpine: update build Signed-off-by: Rui Chen <[email protected]>
1 parent 8ea58f1 commit cb456be

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Formula/m/macpine.rb

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class Macpine < Formula
22
desc "Lightweight Linux VMs on MacOS"
33
homepage "https://beringresearch.github.io/macpine/"
4-
url "https://github.com/beringresearch/macpine/archive/refs/tags/v1.1.2.tar.gz"
5-
sha256 "e1670be845cf863e68af1f2fbe4f677a38c57f818703d85179cc68154f7705e6"
4+
url "https://github.com/beringresearch/macpine/archive/refs/tags/v1.1.4.tar.gz"
5+
sha256 "fd2d315a6bd42c9af2c6c395d46b95731484ea1d79d1902bc919e2f95f73fe69"
66
license "Apache-2.0"
77
head "https://github.com/beringresearch/macpine.git", branch: "main"
88

@@ -37,8 +37,11 @@ class Macpine < Formula
3737
conflicts_with "alpine", because: "both install `alpine` binaries"
3838

3939
def install
40-
system "make", "install", "PREFIX=#{prefix}"
41-
generate_completions_from_executable(bin/"alpine", "completion")
40+
# bump to use go1.25, https://github.com/beringresearch/macpine/pull/223
41+
inreplace "go.mod", "1.23", Formula["go"].version.to_s
42+
43+
system "go", "build", *std_go_args(ldflags: "-s -w", output: bin/"alpine")
44+
generate_completions_from_executable(bin/"alpine", "completion", shells: [:bash, :zsh, :fish, :pwsh])
4245
end
4346

4447
service do

0 commit comments

Comments
 (0)