Skip to content

Commit 6459e6e

Browse files
authored
Merge pull request #226636 from Homebrew/go-1.25
go 1.25.0, [email protected] 1.24.6 (new formula)
2 parents 2236eb9 + 3352faa commit 6459e6e

File tree

7 files changed

+136
-38
lines changed

7 files changed

+136
-38
lines changed
File renamed without changes.

Formula/e/errcheck.rb

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ class Errcheck < Formula
44
url "https://github.com/kisielk/errcheck/archive/refs/tags/v1.9.0.tar.gz"
55
sha256 "f8b9c864c0bdc8e56fbd709fb97a04b43b989815641b8bd9aae2e5fbc43b6930"
66
license "MIT"
7+
revision 1
78

89
bottle do
9-
sha256 cellar: :any_skip_relocation, arm64_sequoia: "b0c68d0627e96f81d5c9908e475a382997f174292480d7e401b9611684ccdd1f"
10-
sha256 cellar: :any_skip_relocation, arm64_sonoma: "b0c68d0627e96f81d5c9908e475a382997f174292480d7e401b9611684ccdd1f"
11-
sha256 cellar: :any_skip_relocation, arm64_ventura: "b0c68d0627e96f81d5c9908e475a382997f174292480d7e401b9611684ccdd1f"
12-
sha256 cellar: :any_skip_relocation, sonoma: "c9d6b69062cdbb9c8b5edc8129eb5e397807321f74f6b14a359bf33b9aff6fed"
13-
sha256 cellar: :any_skip_relocation, ventura: "c9d6b69062cdbb9c8b5edc8129eb5e397807321f74f6b14a359bf33b9aff6fed"
14-
sha256 cellar: :any_skip_relocation, arm64_linux: "289d849babba526eeb0da09e382a1b33313a8b68010e1b20c78e92d64335052f"
15-
sha256 cellar: :any_skip_relocation, x86_64_linux: "9ec9399bb316f7bd3d51f053ec6f918a09a7c209427c75192d812767135fa6ec"
10+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "a28fa11b557c5b8029e19b47c3d4e1bf0c84b3e5c7ec8cbf8ef3a4b129817921"
11+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "a28fa11b557c5b8029e19b47c3d4e1bf0c84b3e5c7ec8cbf8ef3a4b129817921"
12+
sha256 cellar: :any_skip_relocation, arm64_ventura: "a28fa11b557c5b8029e19b47c3d4e1bf0c84b3e5c7ec8cbf8ef3a4b129817921"
13+
sha256 cellar: :any_skip_relocation, sonoma: "ed13edd4e27afb11bf4999389c4a3e74194a0e2c0c9b0a30fd131ceedc840cce"
14+
sha256 cellar: :any_skip_relocation, ventura: "ed13edd4e27afb11bf4999389c4a3e74194a0e2c0c9b0a30fd131ceedc840cce"
15+
sha256 cellar: :any_skip_relocation, arm64_linux: "3bfbd3a1fa6287c3dc2cff31b3519eeec48e06106b887b7864d9d6d99ad494aa"
16+
sha256 cellar: :any_skip_relocation, x86_64_linux: "03aca5016fac06782d5ab9016ef333862fb6b9c9a7e6da85417244be7108fd5a"
1617
end
1718

1819
depends_on "go" => [:build, :test]

Formula/g/go.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
class Go < Formula
22
desc "Open source programming language to build simple/reliable/efficient software"
33
homepage "https://go.dev/"
4-
url "https://go.dev/dl/go1.24.6.src.tar.gz"
5-
mirror "https://fossies.org/linux/misc/go1.24.6.src.tar.gz"
6-
sha256 "e1cb5582aab588668bc04c07de18688070f6b8c9b2aaf361f821e19bd47cfdbd"
4+
url "https://go.dev/dl/go1.25.0.src.tar.gz"
5+
mirror "https://fossies.org/linux/misc/go1.25.0.src.tar.gz"
6+
sha256 "4bd01e91297207bfa450ea40d4d5a93b1b531a5e438473b2a06e18e077227225"
77
license "BSD-3-Clause"
88
head "https://go.googlesource.com/go.git", branch: "master"
99

@@ -21,13 +21,13 @@ class Go < Formula
2121
end
2222

2323
bottle do
24-
sha256 cellar: :any_skip_relocation, arm64_sequoia: "9ab41aa642fe3b4c1757130e89aade72f60a575e552e3125171a17be8b2d4956"
25-
sha256 cellar: :any_skip_relocation, arm64_sonoma: "9ab41aa642fe3b4c1757130e89aade72f60a575e552e3125171a17be8b2d4956"
26-
sha256 cellar: :any_skip_relocation, arm64_ventura: "9ab41aa642fe3b4c1757130e89aade72f60a575e552e3125171a17be8b2d4956"
27-
sha256 cellar: :any_skip_relocation, sonoma: "0ec25dd517427cf90839358810d78bc5e26b9a6780cca0bb560636fdc34a3353"
28-
sha256 cellar: :any_skip_relocation, ventura: "0ec25dd517427cf90839358810d78bc5e26b9a6780cca0bb560636fdc34a3353"
29-
sha256 cellar: :any_skip_relocation, arm64_linux: "674e0ad277daecbdbca7863c0ec9b2b498602c4799a58349f32c4befe1ef1560"
30-
sha256 cellar: :any_skip_relocation, x86_64_linux: "edc895b792320b0282ba893d42db1642b79a3cfb0249254d491b78182f3c9ff4"
24+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "34c0a694a5388db003329d7f6d5069249117e89484fec919316808403d701815"
25+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "34c0a694a5388db003329d7f6d5069249117e89484fec919316808403d701815"
26+
sha256 cellar: :any_skip_relocation, arm64_ventura: "34c0a694a5388db003329d7f6d5069249117e89484fec919316808403d701815"
27+
sha256 cellar: :any_skip_relocation, sonoma: "1cc57e2a94be4bee8a2971b0269191ba81f079e3aa356e325902a9e36a08da3f"
28+
sha256 cellar: :any_skip_relocation, ventura: "1cc57e2a94be4bee8a2971b0269191ba81f079e3aa356e325902a9e36a08da3f"
29+
sha256 cellar: :any_skip_relocation, arm64_linux: "1082220492dd5dbd8ba62df6e694f0e15174f9c93783d84db2018555c6d0771f"
30+
sha256 cellar: :any_skip_relocation, x86_64_linux: "01574eeb30d53c35d5bec9ef2c8fe3d7f14db16835e25353fa371bd11ac11c3c"
3131
end
3232

3333
# Don't update this unless this version cannot bootstrap the new version.

Formula/g/[email protected]

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
class GoAT124 < Formula
2+
desc "Open source programming language to build simple/reliable/efficient software"
3+
homepage "https://go.dev/"
4+
url "https://go.dev/dl/go1.24.6.src.tar.gz"
5+
mirror "https://fossies.org/linux/misc/go1.24.6.src.tar.gz"
6+
sha256 "e1cb5582aab588668bc04c07de18688070f6b8c9b2aaf361f821e19bd47cfdbd"
7+
license "BSD-3-Clause"
8+
9+
livecheck do
10+
url "https://go.dev/dl/?mode=json"
11+
regex(/^go[._-]?v?(1\.24(?:\.\d+)*)[._-]src\.t.+$/i)
12+
strategy :json do |json, regex|
13+
json.map do |release|
14+
next if release["stable"] != true
15+
next if release["files"].none? { |file| file["filename"].match?(regex) }
16+
17+
release["version"][/(\d+(?:\.\d+)+)/, 1]
18+
end
19+
end
20+
end
21+
22+
bottle do
23+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "374c15cd482c42ec3d9a30803e48e18378f171fb5330374ee3565b10baf8aa99"
24+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "374c15cd482c42ec3d9a30803e48e18378f171fb5330374ee3565b10baf8aa99"
25+
sha256 cellar: :any_skip_relocation, arm64_ventura: "374c15cd482c42ec3d9a30803e48e18378f171fb5330374ee3565b10baf8aa99"
26+
sha256 cellar: :any_skip_relocation, sonoma: "f8c8d3d799e72aa26f572efd6c02ed97cb47c8a9a0a5a31f945fb97b49f3458c"
27+
sha256 cellar: :any_skip_relocation, ventura: "f8c8d3d799e72aa26f572efd6c02ed97cb47c8a9a0a5a31f945fb97b49f3458c"
28+
sha256 cellar: :any_skip_relocation, arm64_linux: "fcacb0b26060f6951089b4def084a8886ec760cc00934a87057a09d38cbd3590"
29+
sha256 cellar: :any_skip_relocation, x86_64_linux: "1ee2366a464e59ff4f2a5077717157ea6a1528292761c7d20e7ec53bd0f28bda"
30+
end
31+
32+
keg_only :versioned_formula
33+
34+
depends_on "go" => :build
35+
36+
def install
37+
libexec.install Dir["*"]
38+
39+
cd libexec/"src" do
40+
# Set portable defaults for CC/CXX to be used by cgo
41+
with_env(CC: "cc", CXX: "c++") { system "./make.bash" }
42+
end
43+
44+
bin.install_symlink Dir[libexec/"bin/go*"]
45+
46+
# Remove useless files.
47+
# Breaks patchelf because folder contains weird debug/test files
48+
rm_r(libexec/"src/debug/elf/testdata")
49+
# Binaries built for an incompatible architecture
50+
rm_r(libexec/"src/runtime/pprof/testdata")
51+
# Remove testdata with binaries for non-native architectures.
52+
rm_r(libexec/"src/debug/dwarf/testdata")
53+
end
54+
55+
test do
56+
(testpath/"hello.go").write <<~GO
57+
package main
58+
59+
import "fmt"
60+
61+
func main() {
62+
fmt.Println("Hello World")
63+
}
64+
GO
65+
66+
# Run go fmt check for no errors then run the program.
67+
# This is a a bare minimum of go working as it uses fmt, build, and run.
68+
system bin/"go", "fmt", "hello.go"
69+
assert_equal "Hello World\n", shell_output("#{bin}/go run hello.go")
70+
71+
with_env(GOOS: "freebsd", GOARCH: "amd64") do
72+
system bin/"go", "build", "hello.go"
73+
end
74+
75+
(testpath/"hello_cgo.go").write <<~GO
76+
package main
77+
78+
/*
79+
#include <stdlib.h>
80+
#include <stdio.h>
81+
void hello() { printf("%s\\n", "Hello from cgo!"); fflush(stdout); }
82+
*/
83+
import "C"
84+
85+
func main() {
86+
C.hello()
87+
}
88+
GO
89+
90+
# Try running a sample using cgo without CC or CXX set to ensure that the
91+
# toolchain's default choice of compilers work
92+
with_env(CC: nil, CXX: nil) do
93+
assert_equal "Hello from cgo!\n", shell_output("#{bin}/go run hello_cgo.go")
94+
end
95+
end
96+
end

Formula/g/golangci-lint.rb

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@ class GolangciLint < Formula
55
tag: "v2.3.1",
66
revision: "5256574b81bcedfbcae9099f745f6aee9335da10"
77
license "GPL-3.0-only"
8+
revision 1
89
head "https://github.com/golangci/golangci-lint.git", branch: "master"
910

1011
bottle do
11-
sha256 cellar: :any_skip_relocation, arm64_sequoia: "ed96207a07393cd8a5f0aac4584030a5dfb7ce9cdce206996b79b11f2268ad12"
12-
sha256 cellar: :any_skip_relocation, arm64_sonoma: "6ab155a57e8c3cec710af2e63680bdb9eeaf4d61482b0918847145b6e02b2238"
13-
sha256 cellar: :any_skip_relocation, arm64_ventura: "5a10e4248a2502a6c18f248101c67c679874fb9708a35644bab8c505d03591e6"
14-
sha256 cellar: :any_skip_relocation, sonoma: "298f613bfc58b600edcb32895e15903bb5a98718a3c8268f655da3c912f8e928"
15-
sha256 cellar: :any_skip_relocation, ventura: "0e779f1b7630fef696484d2ddbab00b062e3da367229cf4d279429c22ae1eb51"
16-
sha256 cellar: :any_skip_relocation, arm64_linux: "e8321c0dfe8b3cc7ee840234756bf366c697ea60e23f3cb107e0fe4136114016"
17-
sha256 cellar: :any_skip_relocation, x86_64_linux: "06a9fe92e527836d4215f5347decfe107d29a892ef238e2e87745f6861fa8bb6"
12+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "d488b703e57f539550047b81367e81b96108da09ab1e665147fd4cf269fbc2d8"
13+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "5a7f856bac75a5c47950834c090d0a6a545657f02cfa127f61d32b0ea7d10cc8"
14+
sha256 cellar: :any_skip_relocation, arm64_ventura: "a9c7beb3ff1f3e92a961ab294f5ad153c05c8d6ce3a84ce69f26a88dd9d24b0d"
15+
sha256 cellar: :any_skip_relocation, sonoma: "8ff8635826201371657db74b86753caac5e0c4e2357992c8333df651d2346f86"
16+
sha256 cellar: :any_skip_relocation, ventura: "1cee317bd3af0af2ff4a9bef9671bc958d7cb6094d1f673ee3eb0e43750ebed9"
17+
sha256 cellar: :any_skip_relocation, arm64_linux: "57193b6735d93660871adcf92bd746d168fd1c70c498bfdf7d0906cfa93f3c54"
18+
sha256 cellar: :any_skip_relocation, x86_64_linux: "2bb8cf6c09b853a71c4405c3248c139590dcdfa0964d8ea9041cc30d4e486963"
1819
end
1920

2021
depends_on "go"

Formula/g/govulncheck.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ class Govulncheck < Formula
44
url "https://github.com/golang/vuln/archive/refs/tags/v1.1.4.tar.gz"
55
sha256 "da1a7f3224cf874325814dd198eaa42897143fc871226a04944583cb121a15c9"
66
license "BSD-3-Clause"
7-
revision 1
7+
revision 2
88
head "https://github.com/golang/vuln.git", branch: "master"
99

1010
bottle do
11-
sha256 cellar: :any_skip_relocation, arm64_sequoia: "ab516a4d8e06b264e4056cc7b2559a6283d3b22837bd1f6fb0aa793ab26f86c6"
12-
sha256 cellar: :any_skip_relocation, arm64_sonoma: "ab516a4d8e06b264e4056cc7b2559a6283d3b22837bd1f6fb0aa793ab26f86c6"
13-
sha256 cellar: :any_skip_relocation, arm64_ventura: "ab516a4d8e06b264e4056cc7b2559a6283d3b22837bd1f6fb0aa793ab26f86c6"
14-
sha256 cellar: :any_skip_relocation, sonoma: "543b6dac71b6b63135bd0ceefb1486ab3fdc7c105963403f933352acc08fb885"
15-
sha256 cellar: :any_skip_relocation, ventura: "543b6dac71b6b63135bd0ceefb1486ab3fdc7c105963403f933352acc08fb885"
16-
sha256 cellar: :any_skip_relocation, x86_64_linux: "d8a7b7d79a6746784346ee9aaf519587f724a363cea87200c4c0b10ad04d316c"
11+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "30a8808b70ce289bc91e9ac05745cc71d2b24c97bc73a017824c90f90c2a823c"
12+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "30a8808b70ce289bc91e9ac05745cc71d2b24c97bc73a017824c90f90c2a823c"
13+
sha256 cellar: :any_skip_relocation, arm64_ventura: "30a8808b70ce289bc91e9ac05745cc71d2b24c97bc73a017824c90f90c2a823c"
14+
sha256 cellar: :any_skip_relocation, sonoma: "e4b7ce4852325b7ccd5c6955eddbfa87fd9bf97a8be3a16f353ed1d7afa99cac"
15+
sha256 cellar: :any_skip_relocation, ventura: "90ad669d02c9fd04df0fcf5b3a3a7d8f87ffe7a501b68d9cd8af07ea6cca82db"
16+
sha256 cellar: :any_skip_relocation, x86_64_linux: "f72776dc2ee6aeda090982a183b43182ca390c7b5f16a8867b52da01b86d33eb"
1717
end
1818

1919
depends_on "go" => [:build, :test]

Formula/s/staticcheck.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ class Staticcheck < Formula
44
url "https://github.com/dominikh/go-tools/archive/refs/tags/2025.1.1.tar.gz"
55
sha256 "259aaf528e4d98e7d3652e283e8551cfdb98cd033a7c01003cd377c2444dd6de"
66
license "MIT"
7-
revision 5
7+
revision 6
88
head "https://github.com/dominikh/go-tools.git", branch: "master"
99

1010
bottle do
11-
sha256 cellar: :any_skip_relocation, arm64_sequoia: "3cc91c3199d10ecb384c672d77e1a7cd96bb8ceaf9dc1822d18b9e80a43d3ec8"
12-
sha256 cellar: :any_skip_relocation, arm64_sonoma: "3cc91c3199d10ecb384c672d77e1a7cd96bb8ceaf9dc1822d18b9e80a43d3ec8"
13-
sha256 cellar: :any_skip_relocation, arm64_ventura: "3cc91c3199d10ecb384c672d77e1a7cd96bb8ceaf9dc1822d18b9e80a43d3ec8"
14-
sha256 cellar: :any_skip_relocation, sonoma: "46575b0b83b7655596a554d1cf01a183a11f34f0f630163e6498685d38914500"
15-
sha256 cellar: :any_skip_relocation, ventura: "46575b0b83b7655596a554d1cf01a183a11f34f0f630163e6498685d38914500"
16-
sha256 cellar: :any_skip_relocation, x86_64_linux: "01d7794d0df324bb1fcf2dc614fc6d7ee2c2c7bbbf52326988b6151729cdc0c1"
11+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "1d49bf15d445037e7338411d4834b502f31b2d48d61b2307d68bc6ab0cf06e9c"
12+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "1d49bf15d445037e7338411d4834b502f31b2d48d61b2307d68bc6ab0cf06e9c"
13+
sha256 cellar: :any_skip_relocation, arm64_ventura: "1d49bf15d445037e7338411d4834b502f31b2d48d61b2307d68bc6ab0cf06e9c"
14+
sha256 cellar: :any_skip_relocation, sonoma: "4c0672275fc93e3a7f80af0f80ff1619c03102f4a0fcf2a82d2d65ae2b9b3d0d"
15+
sha256 cellar: :any_skip_relocation, ventura: "4c0672275fc93e3a7f80af0f80ff1619c03102f4a0fcf2a82d2d65ae2b9b3d0d"
16+
sha256 cellar: :any_skip_relocation, x86_64_linux: "a3e00e861c054c592f87ecd10ef2f26f59cd611ca71f26fe7d7ba6ceab3b4d13"
1717
end
1818

1919
depends_on "go"

0 commit comments

Comments
 (0)