Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go 1.22.0 #157782

Merged
merged 4 commits into from
Feb 15, 2024
Merged

go 1.22.0 #157782

Show file tree
Hide file tree
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
File renamed without changes.
20 changes: 8 additions & 12 deletions Formula/g/garble.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@ class Garble < Formula
url "https://github.com/burrowers/garble/archive/refs/tags/v0.12.0.tar.gz"
sha256 "cf18939683a9e453468e8dd1bcc0da5b1bb4b306e6cc5bf935e0c5c8d68b5d35"
license "BSD-3-Clause"
revision 1
head "https://github.com/burrowers/garble.git", branch: "master"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: "1f0b40df0f7a548a5d60c3cccb60e682117eaae467a86f0e4f50c00c09b52882"
sha256 cellar: :any_skip_relocation, arm64_ventura: "5fcbb46ca194653ad647b2a78cc8c398818cb5027849d79001889ce15115c2f8"
sha256 cellar: :any_skip_relocation, arm64_monterey: "e380a26a97da73aff6b517cac08513697916a0f2e92a266b20dbb11206a5f9b1"
sha256 cellar: :any_skip_relocation, sonoma: "0b2731f19af5354716ae207a69c59c51a0edfaa7d2a6f75fb8cd3ae03d1a9df9"
sha256 cellar: :any_skip_relocation, ventura: "9c71616ff3e44cf3966bd0f29e04ff60059cf7ef065136b32a9445e87936e424"
sha256 cellar: :any_skip_relocation, monterey: "072e36f943c57a2abf1024cc70a60f55fdd2b46e1bcbd8a9623a270a865c9481"
sha256 cellar: :any_skip_relocation, x86_64_linux: "e652b925eb4f3191832277b6e11b5b3fd7b26d84fe792f9ed9d4ca81200348e8"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "bf59878de31b57117cd16856932496870392a427029c303457cc5afc52aa420e"
sha256 cellar: :any_skip_relocation, arm64_ventura: "83da7f95101c0852850dd1e45dcb32fb1ff49083cf87b9e8b47e45421b0c683c"
sha256 cellar: :any_skip_relocation, arm64_monterey: "1b5db14f37acef2fbf72eb9ab63eb60e2fdd5db15b897ebc05f57b71f01f604a"
sha256 cellar: :any_skip_relocation, sonoma: "08a01645a624039015a5bf04a2b9435359ca449a0743ce23283367ac46cb1dd2"
sha256 cellar: :any_skip_relocation, ventura: "54bcd6f5dd82ed6d41fc399e87743113398452fca1615b23f26e272feef900ca"
sha256 cellar: :any_skip_relocation, monterey: "5bd2829ce9195af230097370551638610b4a30734f1e4e05ecf4336440dc59e7"
sha256 cellar: :any_skip_relocation, x86_64_linux: "72c83f94f157da4e0dad7e4e4dfd424ea4ced61fa05928447a3fd5ae88122a0f"
end

depends_on "go" => [:build, :test]
Expand All @@ -37,16 +38,11 @@ def install
system bin/"garble", "-literals", "-tiny", "build", testpath/"hello.go"
assert_equal "Hello World\n", shell_output("#{testpath}/hello")

goos = Utils.safe_popen_read("#{Formula["go"].bin}/go", "env", "GOOS").chomp
goarch = Utils.safe_popen_read("#{Formula["go"].bin}/go", "env", "GOARCH").chomp
expected = <<~EOS
Build settings:
-buildmode exe
-compiler gc
-trimpath true
CGO_ENABLED 1
GOARCH #{goarch}
GOOS #{goos}
EOS
assert_match expected, shell_output("#{bin}/garble version")
end
Expand Down
30 changes: 15 additions & 15 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.21.7.src.tar.gz"
mirror "https://fossies.org/linux/misc/go1.21.7.src.tar.gz"
sha256 "00197ab20f33813832bff62fd93cca1c42a08cc689a32a6672ca49591959bff6"
url "https://go.dev/dl/go1.22.0.src.tar.gz"
mirror "https://fossies.org/linux/misc/go1.22.0.src.tar.gz"
sha256 "4d196c3d41a0d6c1dfc64d04e3cc1f608b0c436bd87b7060ce3e23234e1f4d5c"
license "BSD-3-Clause"
head "https://go.googlesource.com/go.git", branch: "master"

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

bottle do
sha256 arm64_sonoma: "b8d6b559eafd615a9e18d8c3c370d5c3e947647c478a3f92003946a989490fd0"
sha256 arm64_ventura: "f6c5823625fb07c4aa2b9a019100e6bea59db721c2cfa98007d406c747d7ed87"
sha256 arm64_monterey: "822a2a9d7061d0c816a8b25feebc108d440d9c21d4af9cda020f339719f2ad90"
sha256 sonoma: "beabe176fb5e5df9ffb0bc30bf0136545bdad4ff48ad1f3583c54ec5a7202f7d"
sha256 ventura: "f513dbb8bcf9db00e0e30e97a31aa73a163eacaf71a25bbdf948923017a52128"
sha256 monterey: "c410ff76a352372e822d0f964e6c4a4624b25cb81f21c766294bb891185940d2"
sha256 x86_64_linux: "5554151f6201b49bec03fc408e5912b5919bdbe731c890ca06ac0189c248dc62"
sha256 arm64_sonoma: "5b6a74eb8ceddbefbe2e8fd6741877d7c6bba2bb98e39e0e6c63275a12afc738"
sha256 arm64_ventura: "42e3f0211a1c8e9c48b398861414a928f255f430e0b87414419c64be5fc6e087"
sha256 arm64_monterey: "9d8e676f95fa10a62b1e9b6163a72dbe367eac42e3331f41ab38350820071722"
sha256 sonoma: "d88e776e567cea8d05e451376f344ffe08df11bf7b02e4a6e56e46bcf7381213"
sha256 ventura: "67d4de0223ee32b293e682470c0463adde358a9d43b949c8c43eae30c40347b1"
sha256 monterey: "aff3fd24232a87ee629dbcae614889de2f3d4c91bb1017966f28f1aca2b25279"
sha256 x86_64_linux: "2fe839ddca7680dc4a3538e8af906efc8f36f8f461098f6c1e6c780a18407214"
end

# Don't update this unless this version cannot bootstrap the new version.
resource "gobootstrap" do
checksums = {
"darwin-arm64" => "e4ccc9c082d91eaa0b866078b591fc97d24b91495f12deb3dd2d8eda4e55a6ea",
"darwin-amd64" => "c101beaa232e0f448fab692dc036cd6b4677091ff89c4889cc8754b1b29c6608",
"linux-arm64" => "914daad3f011cc2014dea799bb7490442677e4ad6de0b2ac3ded6cee7e3f493d",
"linux-amd64" => "4cdd2bc664724dc7db94ad51b503512c5ae7220951cac568120f64f8e94399fc",
"darwin-arm64" => "6da3f76164b215053daf730a9b8f1d673dbbaa4c61031374a6744b75cb728641",
"darwin-amd64" => "754363489e2244e72cb49b4ec6ddfd6a2c60b0700f8c4876e11befb1913b11c5",
"linux-arm64" => "2096507509a98782850d1f0669786c09727053e9fe3c92b03c0d96f48700282b",
"linux-amd64" => "ff445e48af27f93f66bd949ae060d97991c83e11289009d311f25426258f9c44",
}

version "1.17.13"
version "1.20.14"

on_arm do
on_macos do
Expand Down
Loading