From 27ebb7ee487961ebe8c1a03672fd600bcdbaa04f Mon Sep 17 00:00:00 2001 From: Igor Kapkov Date: Thu, 12 Sep 2019 07:52:36 +1000 Subject: [PATCH] noti 3.3.0 Closes #44154. Signed-off-by: Igor Kapkov --- Formula/noti.rb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Formula/noti.rb b/Formula/noti.rb index 9e45cc573f..6301832dc8 100644 --- a/Formula/noti.rb +++ b/Formula/noti.rb @@ -1,8 +1,8 @@ class Noti < Formula desc "Trigger notifications when a process completes" homepage "https://github.com/variadico/noti" - url "https://github.com/variadico/noti/archive/3.2.0.tar.gz" - sha256 "76766deecbd5ed37a9e1af0aa1d79f81e2ed2f2272394f0e980e1cc4036535a8" + url "https://github.com/variadico/noti/archive/3.3.0.tar.gz" + sha256 "494e1a83897bfa9123c8292d0b8501b779b5d31b7f43923b8c48543a5404eb7a" bottle do cellar :any_skip_relocation @@ -14,12 +14,14 @@ class Noti < Formula depends_on "go" => :build def install + ENV["GO111MODULE"] = "on" + ENV["GOFLAGS"] = "-mod=vendor" ENV["GOPATH"] = buildpath - notipath = buildpath/"src/github.com/variadico/noti" - notipath.install Dir["*"] + src = buildpath/"src/github.com/variadico/noti" + src.install buildpath.children - cd "src/github.com/variadico/noti/cmd/noti" do + cd src.join("cmd/noti") do system "go", "build" bin.install "noti" prefix.install_metafiles