Skip to content
File renamed without changes.
15 changes: 8 additions & 7 deletions Formula/e/errcheck.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ class Errcheck < Formula
url "https://github.com/kisielk/errcheck/archive/refs/tags/v1.9.0.tar.gz"
sha256 "f8b9c864c0bdc8e56fbd709fb97a04b43b989815641b8bd9aae2e5fbc43b6930"
license "MIT"
revision 1

bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "b0c68d0627e96f81d5c9908e475a382997f174292480d7e401b9611684ccdd1f"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "b0c68d0627e96f81d5c9908e475a382997f174292480d7e401b9611684ccdd1f"
sha256 cellar: :any_skip_relocation, arm64_ventura: "b0c68d0627e96f81d5c9908e475a382997f174292480d7e401b9611684ccdd1f"
sha256 cellar: :any_skip_relocation, sonoma: "c9d6b69062cdbb9c8b5edc8129eb5e397807321f74f6b14a359bf33b9aff6fed"
sha256 cellar: :any_skip_relocation, ventura: "c9d6b69062cdbb9c8b5edc8129eb5e397807321f74f6b14a359bf33b9aff6fed"
sha256 cellar: :any_skip_relocation, arm64_linux: "289d849babba526eeb0da09e382a1b33313a8b68010e1b20c78e92d64335052f"
sha256 cellar: :any_skip_relocation, x86_64_linux: "9ec9399bb316f7bd3d51f053ec6f918a09a7c209427c75192d812767135fa6ec"
sha256 cellar: :any_skip_relocation, arm64_sequoia: "a28fa11b557c5b8029e19b47c3d4e1bf0c84b3e5c7ec8cbf8ef3a4b129817921"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "a28fa11b557c5b8029e19b47c3d4e1bf0c84b3e5c7ec8cbf8ef3a4b129817921"
sha256 cellar: :any_skip_relocation, arm64_ventura: "a28fa11b557c5b8029e19b47c3d4e1bf0c84b3e5c7ec8cbf8ef3a4b129817921"
sha256 cellar: :any_skip_relocation, sonoma: "ed13edd4e27afb11bf4999389c4a3e74194a0e2c0c9b0a30fd131ceedc840cce"
sha256 cellar: :any_skip_relocation, ventura: "ed13edd4e27afb11bf4999389c4a3e74194a0e2c0c9b0a30fd131ceedc840cce"
sha256 cellar: :any_skip_relocation, arm64_linux: "3bfbd3a1fa6287c3dc2cff31b3519eeec48e06106b887b7864d9d6d99ad494aa"
sha256 cellar: :any_skip_relocation, x86_64_linux: "03aca5016fac06782d5ab9016ef333862fb6b9c9a7e6da85417244be7108fd5a"
end

depends_on "go" => [:build, :test]
Expand Down
20 changes: 10 additions & 10 deletions Formula/g/go.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
class Go < Formula
desc "Open source programming language to build simple/reliable/efficient software"
homepage "https://go.dev/"
url "https://go.dev/dl/go1.24.6.src.tar.gz"
mirror "https://fossies.org/linux/misc/go1.24.6.src.tar.gz"
sha256 "e1cb5582aab588668bc04c07de18688070f6b8c9b2aaf361f821e19bd47cfdbd"
url "https://go.dev/dl/go1.25.0.src.tar.gz"
mirror "https://fossies.org/linux/misc/go1.25.0.src.tar.gz"
sha256 "4bd01e91297207bfa450ea40d4d5a93b1b531a5e438473b2a06e18e077227225"
license "BSD-3-Clause"
head "https://go.googlesource.com/go.git", branch: "master"

Expand All @@ -21,13 +21,13 @@ class Go < Formula
end

bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "9ab41aa642fe3b4c1757130e89aade72f60a575e552e3125171a17be8b2d4956"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "9ab41aa642fe3b4c1757130e89aade72f60a575e552e3125171a17be8b2d4956"
sha256 cellar: :any_skip_relocation, arm64_ventura: "9ab41aa642fe3b4c1757130e89aade72f60a575e552e3125171a17be8b2d4956"
sha256 cellar: :any_skip_relocation, sonoma: "0ec25dd517427cf90839358810d78bc5e26b9a6780cca0bb560636fdc34a3353"
sha256 cellar: :any_skip_relocation, ventura: "0ec25dd517427cf90839358810d78bc5e26b9a6780cca0bb560636fdc34a3353"
sha256 cellar: :any_skip_relocation, arm64_linux: "674e0ad277daecbdbca7863c0ec9b2b498602c4799a58349f32c4befe1ef1560"
sha256 cellar: :any_skip_relocation, x86_64_linux: "edc895b792320b0282ba893d42db1642b79a3cfb0249254d491b78182f3c9ff4"
sha256 cellar: :any_skip_relocation, arm64_sequoia: "34c0a694a5388db003329d7f6d5069249117e89484fec919316808403d701815"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "34c0a694a5388db003329d7f6d5069249117e89484fec919316808403d701815"
sha256 cellar: :any_skip_relocation, arm64_ventura: "34c0a694a5388db003329d7f6d5069249117e89484fec919316808403d701815"
sha256 cellar: :any_skip_relocation, sonoma: "1cc57e2a94be4bee8a2971b0269191ba81f079e3aa356e325902a9e36a08da3f"
sha256 cellar: :any_skip_relocation, ventura: "1cc57e2a94be4bee8a2971b0269191ba81f079e3aa356e325902a9e36a08da3f"
sha256 cellar: :any_skip_relocation, arm64_linux: "1082220492dd5dbd8ba62df6e694f0e15174f9c93783d84db2018555c6d0771f"
sha256 cellar: :any_skip_relocation, x86_64_linux: "01574eeb30d53c35d5bec9ef2c8fe3d7f14db16835e25353fa371bd11ac11c3c"
end

# Don't update this unless this version cannot bootstrap the new version.
Expand Down
96 changes: 96 additions & 0 deletions Formula/g/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
class GoAT124 < Formula
desc "Open source programming language to build simple/reliable/efficient software"
homepage "https://go.dev/"
url "https://go.dev/dl/go1.24.6.src.tar.gz"
mirror "https://fossies.org/linux/misc/go1.24.6.src.tar.gz"
sha256 "e1cb5582aab588668bc04c07de18688070f6b8c9b2aaf361f821e19bd47cfdbd"
license "BSD-3-Clause"

livecheck do
url "https://go.dev/dl/?mode=json"
regex(/^go[._-]?v?(1\.24(?:\.\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_sequoia: "374c15cd482c42ec3d9a30803e48e18378f171fb5330374ee3565b10baf8aa99"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "374c15cd482c42ec3d9a30803e48e18378f171fb5330374ee3565b10baf8aa99"
sha256 cellar: :any_skip_relocation, arm64_ventura: "374c15cd482c42ec3d9a30803e48e18378f171fb5330374ee3565b10baf8aa99"
sha256 cellar: :any_skip_relocation, sonoma: "f8c8d3d799e72aa26f572efd6c02ed97cb47c8a9a0a5a31f945fb97b49f3458c"
sha256 cellar: :any_skip_relocation, ventura: "f8c8d3d799e72aa26f572efd6c02ed97cb47c8a9a0a5a31f945fb97b49f3458c"
sha256 cellar: :any_skip_relocation, arm64_linux: "fcacb0b26060f6951089b4def084a8886ec760cc00934a87057a09d38cbd3590"
sha256 cellar: :any_skip_relocation, x86_64_linux: "1ee2366a464e59ff4f2a5077717157ea6a1528292761c7d20e7ec53bd0f28bda"
end

keg_only :versioned_formula

depends_on "go" => :build

def install
libexec.install Dir["*"]

cd libexec/"src" do
# Set portable defaults for CC/CXX to be used by cgo
with_env(CC: "cc", CXX: "c++") { system "./make.bash" }
end

bin.install_symlink Dir[libexec/"bin/go*"]

# Remove useless files.
# Breaks patchelf because folder contains weird debug/test files
rm_r(libexec/"src/debug/elf/testdata")
# Binaries built for an incompatible architecture
rm_r(libexec/"src/runtime/pprof/testdata")
# Remove testdata with binaries for non-native architectures.
rm_r(libexec/"src/debug/dwarf/testdata")
end

test do
(testpath/"hello.go").write <<~GO
package main

import "fmt"

func main() {
fmt.Println("Hello World")
}
GO

# Run go fmt check for no errors then run the program.
# This is a a bare minimum of go working as it uses fmt, build, and run.
system bin/"go", "fmt", "hello.go"
assert_equal "Hello World\n", shell_output("#{bin}/go run hello.go")

with_env(GOOS: "freebsd", GOARCH: "amd64") do
system bin/"go", "build", "hello.go"
end

(testpath/"hello_cgo.go").write <<~GO
package main

/*
#include <stdlib.h>
#include <stdio.h>
void hello() { printf("%s\\n", "Hello from cgo!"); fflush(stdout); }
*/
import "C"

func main() {
C.hello()
}
GO

# Try running a sample using cgo without CC or CXX set to ensure that the
# toolchain's default choice of compilers work
with_env(CC: nil, CXX: nil) do
assert_equal "Hello from cgo!\n", shell_output("#{bin}/go run hello_cgo.go")
end
end
end
15 changes: 8 additions & 7 deletions Formula/g/golangci-lint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@ class GolangciLint < Formula
tag: "v2.3.1",
revision: "5256574b81bcedfbcae9099f745f6aee9335da10"
license "GPL-3.0-only"
revision 1
head "https://github.com/golangci/golangci-lint.git", branch: "master"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "ed96207a07393cd8a5f0aac4584030a5dfb7ce9cdce206996b79b11f2268ad12"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "6ab155a57e8c3cec710af2e63680bdb9eeaf4d61482b0918847145b6e02b2238"
sha256 cellar: :any_skip_relocation, arm64_ventura: "5a10e4248a2502a6c18f248101c67c679874fb9708a35644bab8c505d03591e6"
sha256 cellar: :any_skip_relocation, sonoma: "298f613bfc58b600edcb32895e15903bb5a98718a3c8268f655da3c912f8e928"
sha256 cellar: :any_skip_relocation, ventura: "0e779f1b7630fef696484d2ddbab00b062e3da367229cf4d279429c22ae1eb51"
sha256 cellar: :any_skip_relocation, arm64_linux: "e8321c0dfe8b3cc7ee840234756bf366c697ea60e23f3cb107e0fe4136114016"
sha256 cellar: :any_skip_relocation, x86_64_linux: "06a9fe92e527836d4215f5347decfe107d29a892ef238e2e87745f6861fa8bb6"
sha256 cellar: :any_skip_relocation, arm64_sequoia: "d488b703e57f539550047b81367e81b96108da09ab1e665147fd4cf269fbc2d8"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "5a7f856bac75a5c47950834c090d0a6a545657f02cfa127f61d32b0ea7d10cc8"
sha256 cellar: :any_skip_relocation, arm64_ventura: "a9c7beb3ff1f3e92a961ab294f5ad153c05c8d6ce3a84ce69f26a88dd9d24b0d"
sha256 cellar: :any_skip_relocation, sonoma: "8ff8635826201371657db74b86753caac5e0c4e2357992c8333df651d2346f86"
sha256 cellar: :any_skip_relocation, ventura: "1cee317bd3af0af2ff4a9bef9671bc958d7cb6094d1f673ee3eb0e43750ebed9"
sha256 cellar: :any_skip_relocation, arm64_linux: "57193b6735d93660871adcf92bd746d168fd1c70c498bfdf7d0906cfa93f3c54"
sha256 cellar: :any_skip_relocation, x86_64_linux: "2bb8cf6c09b853a71c4405c3248c139590dcdfa0964d8ea9041cc30d4e486963"
end

depends_on "go"
Expand Down
14 changes: 7 additions & 7 deletions Formula/g/govulncheck.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ class Govulncheck < Formula
url "https://github.com/golang/vuln/archive/refs/tags/v1.1.4.tar.gz"
sha256 "da1a7f3224cf874325814dd198eaa42897143fc871226a04944583cb121a15c9"
license "BSD-3-Clause"
revision 1
revision 2
head "https://github.com/golang/vuln.git", branch: "master"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "ab516a4d8e06b264e4056cc7b2559a6283d3b22837bd1f6fb0aa793ab26f86c6"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "ab516a4d8e06b264e4056cc7b2559a6283d3b22837bd1f6fb0aa793ab26f86c6"
sha256 cellar: :any_skip_relocation, arm64_ventura: "ab516a4d8e06b264e4056cc7b2559a6283d3b22837bd1f6fb0aa793ab26f86c6"
sha256 cellar: :any_skip_relocation, sonoma: "543b6dac71b6b63135bd0ceefb1486ab3fdc7c105963403f933352acc08fb885"
sha256 cellar: :any_skip_relocation, ventura: "543b6dac71b6b63135bd0ceefb1486ab3fdc7c105963403f933352acc08fb885"
sha256 cellar: :any_skip_relocation, x86_64_linux: "d8a7b7d79a6746784346ee9aaf519587f724a363cea87200c4c0b10ad04d316c"
sha256 cellar: :any_skip_relocation, arm64_sequoia: "30a8808b70ce289bc91e9ac05745cc71d2b24c97bc73a017824c90f90c2a823c"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "30a8808b70ce289bc91e9ac05745cc71d2b24c97bc73a017824c90f90c2a823c"
sha256 cellar: :any_skip_relocation, arm64_ventura: "30a8808b70ce289bc91e9ac05745cc71d2b24c97bc73a017824c90f90c2a823c"
sha256 cellar: :any_skip_relocation, sonoma: "e4b7ce4852325b7ccd5c6955eddbfa87fd9bf97a8be3a16f353ed1d7afa99cac"
sha256 cellar: :any_skip_relocation, ventura: "90ad669d02c9fd04df0fcf5b3a3a7d8f87ffe7a501b68d9cd8af07ea6cca82db"
sha256 cellar: :any_skip_relocation, x86_64_linux: "f72776dc2ee6aeda090982a183b43182ca390c7b5f16a8867b52da01b86d33eb"
end

depends_on "go" => [:build, :test]
Expand Down
14 changes: 7 additions & 7 deletions Formula/s/staticcheck.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ class Staticcheck < Formula
url "https://github.com/dominikh/go-tools/archive/refs/tags/2025.1.1.tar.gz"
sha256 "259aaf528e4d98e7d3652e283e8551cfdb98cd033a7c01003cd377c2444dd6de"
license "MIT"
revision 5
revision 6
head "https://github.com/dominikh/go-tools.git", branch: "master"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "3cc91c3199d10ecb384c672d77e1a7cd96bb8ceaf9dc1822d18b9e80a43d3ec8"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "3cc91c3199d10ecb384c672d77e1a7cd96bb8ceaf9dc1822d18b9e80a43d3ec8"
sha256 cellar: :any_skip_relocation, arm64_ventura: "3cc91c3199d10ecb384c672d77e1a7cd96bb8ceaf9dc1822d18b9e80a43d3ec8"
sha256 cellar: :any_skip_relocation, sonoma: "46575b0b83b7655596a554d1cf01a183a11f34f0f630163e6498685d38914500"
sha256 cellar: :any_skip_relocation, ventura: "46575b0b83b7655596a554d1cf01a183a11f34f0f630163e6498685d38914500"
sha256 cellar: :any_skip_relocation, x86_64_linux: "01d7794d0df324bb1fcf2dc614fc6d7ee2c2c7bbbf52326988b6151729cdc0c1"
sha256 cellar: :any_skip_relocation, arm64_sequoia: "1d49bf15d445037e7338411d4834b502f31b2d48d61b2307d68bc6ab0cf06e9c"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "1d49bf15d445037e7338411d4834b502f31b2d48d61b2307d68bc6ab0cf06e9c"
sha256 cellar: :any_skip_relocation, arm64_ventura: "1d49bf15d445037e7338411d4834b502f31b2d48d61b2307d68bc6ab0cf06e9c"
sha256 cellar: :any_skip_relocation, sonoma: "4c0672275fc93e3a7f80af0f80ff1619c03102f4a0fcf2a82d2d65ae2b9b3d0d"
sha256 cellar: :any_skip_relocation, ventura: "4c0672275fc93e3a7f80af0f80ff1619c03102f4a0fcf2a82d2d65ae2b9b3d0d"
sha256 cellar: :any_skip_relocation, x86_64_linux: "a3e00e861c054c592f87ecd10ef2f26f59cd611ca71f26fe7d7ba6ceab3b4d13"
end

depends_on "go"
Expand Down
Loading