Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh3: update go build #200021

Merged
merged 1 commit into from
Dec 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions Formula/s/ssh3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ class Ssh3 < Formula
tag: "v0.1.7",
revision: "31f8242cf30b675c25b981b862f36e73f9fa1d9d"
license "Apache-2.0"
head "https://github.com/francoismichel/ssh3.git",
branch: "main"
head "https://github.com/francoismichel/ssh3.git", branch: "main"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "0f4b007d021b93cfb0c17d853b9ad0f8e8d9112402a7acbbb466f90517e20a12"
Expand All @@ -23,13 +22,9 @@ class Ssh3 < Formula
uses_from_macos "libxcrypt"

def install
system "go", "build",
*std_go_args(output: bin/"ssh3", ldflags: "-s -w"),
"cmd/ssh3/main.go"
ENV["CGO_ENABLED"] = "1"
stefanb marked this conversation as resolved.
Show resolved Hide resolved
system "go", "build",
*std_go_args(output: bin/"ssh3-server", ldflags: "-s -w"),
"cmd/ssh3-server/main.go"
ldflags = "-s -w"
system "go", "build", *std_go_args(ldflags:, output: bin/"ssh3"), "./cmd/ssh3"
system "go", "build", *std_go_args(ldflags:, output: bin/"ssh3-server"), "./cmd/ssh3-server"
end

test do
Expand Down
Loading