From aef27c2441fec98c9c6b940bf5a6d6babaf80b0b Mon Sep 17 00:00:00 2001 From: Branch Vincent Date: Wed, 25 Aug 2021 21:50:38 -0400 Subject: [PATCH] elvish: support go 1.17 --- Formula/elvish.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Formula/elvish.rb b/Formula/elvish.rb index ef3fca45e2dee..ec4d8ff3877cf 100644 --- a/Formula/elvish.rb +++ b/Formula/elvish.rb @@ -16,6 +16,13 @@ class Elvish < Formula depends_on "go" => :build + # Support go 1.17, remove when upstream patch is merged/released + # https://github.com/elves/elvish/pull/1390 + patch do + url "https://github.com/elves/elvish/commit/aae0174d59f1bb7c54168fc57f71d4c2b8721838.patch?full_index=1" + sha256 "b7d04f3684e74a30883258be17a408b1201c7f7cb353d7b0e701c84c02e1b281" + end + def install system "go", "build", *std_go_args(ldflags: "-s -w -X src.elv.sh/pkg/buildinfo.VersionSuffix="), "./cmd/elvish"