Skip to content

Commit c340594

Browse files
committed
use versioned Go formula (key_only)
1 parent c1d11e6 commit c340594

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Formula/defang.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ class Defang < Formula
66
license "MIT"
77
head "https://github.com/DefangLabs/defang.git", branch: "main"
88

9-
depends_on "go" => :build
9+
depends_on "go@1.24" => :build
1010

1111
def install
1212
version_info = "-X main.version=#{version}"
1313
Dir.chdir "src" do
14-
system "go", "build", "-o", bin/"defang", "-buildvcs=false", *std_go_args(ldflags: "#{version_info} -s -w"), "./cmd/cli"
14+
system "go", "build", *std_go_args(ldflags: "#{version_info} -s -w"), "./cmd/cli"
1515
end
1616

1717
# Install shell completions (using the binary we just built to generate them)

0 commit comments

Comments
 (0)