diff --git a/Formula/s/syncthing.rb b/Formula/s/syncthing.rb index 3b86364c0cf1..5d89e97d606f 100644 --- a/Formula/s/syncthing.rb +++ b/Formula/s/syncthing.rb @@ -20,9 +20,12 @@ class Syncthing < Formula sha256 cellar: :any_skip_relocation, x86_64_linux: "dfd0c9e1597c7b46bcec014cd6c826e4f579e009368773b5a7f51267d137fd5b" end - depends_on "go" => :build + # unpin go when the 2.0.15 release is out containing https://github.com/syncthing/syncthing/pull/10570 + depends_on "go@1.25" => :build def install + odie "Check if pinning to go@1.25 can be removed" if build.stable? && version > "2.0.15" + build_version = build.head? ? "v0.0.0-#{version}" : "v#{version}" system "go", "run", "build.go", "--version", build_version, "--no-upgrade", "tar" bin.install "syncthing"