Skip to content

Commit

Permalink
yubikey-agent: support go 1.17
Browse files Browse the repository at this point in the history
Closes #83996.

Signed-off-by: Sean Molenaar <[email protected]>
Signed-off-by: BrewTestBot <[email protected]>
  • Loading branch information
branchvincent authored and BrewTestBot committed Aug 26, 2021
1 parent 4f9863c commit 7b019c7
Showing 1 changed file with 8 additions and 1 deletion.
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

0 comments on commit 7b019c7

Please sign in to comment.