From a195486de686002c480eca1e232a8b39d567c915 Mon Sep 17 00:00:00 2001 From: Igor Kapkov Date: Wed, 6 Mar 2019 08:37:18 +1100 Subject: [PATCH] syncthing 1.1.0 Closes #37632. Signed-off-by: FX Coudert --- Formula/syncthing.rb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Formula/syncthing.rb b/Formula/syncthing.rb index 741d9a3488..b224183c6a 100644 --- a/Formula/syncthing.rb +++ b/Formula/syncthing.rb @@ -2,8 +2,8 @@ class Syncthing < Formula desc "Open source continuous file synchronization application" homepage "https://syncthing.net/" url "https://github.com/syncthing/syncthing.git", - :tag => "v1.0.1", - :revision => "1e69997ecdbf87ceaad76bd0149d98f560f4fdb5" + :tag => "v1.1.0", + :revision => "f0f79a3e3e861b79da2b09f563e9d373255419f0" head "https://github.com/syncthing/syncthing.git" bottle do @@ -16,10 +16,12 @@ class Syncthing < Formula depends_on "go" => :build def install + ENV["GO111MODULE"] = "on" ENV["GOPATH"] = buildpath - (buildpath/"src/github.com/syncthing/syncthing").install buildpath.children - ENV.append_path "PATH", buildpath/"bin" - cd "src/github.com/syncthing/syncthing" do + + src = buildpath/"src/github.com/syncthing/syncthing" + src.install buildpath.children + src.cd do system "./build.sh", "noupgrade" bin.install "syncthing" man1.install Dir["man/*.1"]