Skip to content
Merged

go 1.22.0 #157782

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
File renamed without changes.
6 changes: 1 addition & 5 deletions Formula/g/garble.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ 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
Expand Down Expand Up @@ -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
16 changes: 8 additions & 8 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 Down Expand Up @@ -33,13 +33,13 @@ class Go < Formula
# 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