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

yubikey-agent: support go 1.17 #83996

Closed
wants to merge 1 commit into from
Closed
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
9 changes: 8 additions & 1 deletion Formula/yubikey-agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,15 @@ class YubikeyAgent < Formula
depends_on "pinentry"
end

# Support go 1.17, remove when upstream patch is merged/released
# https://github.com/FiloSottile/yubikey-agent/pull/99
patch do
url "https://github.com/FiloSottile/yubikey-agent/commit/92e45828da1c33531f507625f41e3bdadfe3ee86.patch?full_index=1"
sha256 "605503152d3ea75072a98366994b65e4810c54e3dc690d8d47b9fb67ef47bd4d"
end

def install
system "go", "build", *std_go_args, "-ldflags", "-X main.Version=v#{version}"
system "go", "build", *std_go_args(ldflags: "-s -w -X main.Version=v#{version}")
end

def post_install
Expand Down