Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Formula/s/syncthing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading