Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
17 changes: 4 additions & 13 deletions Formula/g/go@1.20.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,6 @@ class GoAT120 < Formula
sha256 "1aef321a0e3e38b7e91d2d7eb64040666cabdcc77d383de3c9522d0d69b67f4e"
license "BSD-3-Clause"

livecheck do
url "https://go.dev/dl/?mode=json"
regex(/^go[._-]?v?(1\.20(?:\.\d+)*)[._-]src\.t.+$/i)
strategy :json do |json, regex|
json.map do |release|
next if release["stable"] != true
next if release["files"].none? { |file| file["filename"].match?(regex) }

release["version"][/(\d+(?:\.\d+)+)/, 1]
end
end
end

bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: "0b20f912de2f48cb1c313abe765970a22fc853a915d4126164887b3273803264"
sha256 cellar: :any_skip_relocation, arm64_ventura: "0b20f912de2f48cb1c313abe765970a22fc853a915d4126164887b3273803264"
Expand All @@ -31,6 +18,10 @@ class GoAT120 < Formula

keg_only :versioned_formula

# EOL with Go 1.22 release (2024-02-06)
# Ref: https://go.dev/doc/devel/release#policy
deprecate! date: "2024-02-14", because: :unsupported

depends_on "go" => :build

def install
Expand Down
4 changes: 4 additions & 0 deletions Formula/g/gost.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ class Gost < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "de1f718516d68a836440a2ad09bc48ec150935de28084726bab8e159c2c48860"
end

# no release to support go1.20, https://github.com/ginuerzh/gost/issues/1012
# also no actions on go1.21 build support PR, https://github.com/ginuerzh/gost/pull/983
deprecate! date: "2024-02-14", because: :unmaintained

depends_on "go@1.20" => :build

conflicts_with "vulsio-gost", because: "both install `gost` binaries"
Expand Down