From ddefacc4aba59065945131958d36ff5f9986c404 Mon Sep 17 00:00:00 2001 From: Roy Ivy III Date: Mon, 18 Mar 2024 20:51:11 -0500 Subject: [PATCH] UPDATE go --- go.json | 17 +++++++++++------ go@1.19.13.json | 46 ++++++++++++++++++++++++++++++++++++++++++++ go@1.20.14.json | 51 +++++++++++++++++++++++++++++++++++++++++++++++++ go@1.21.7.json | 51 +++++++++++++++++++++++++++++++++++++++++++++++++ go@1.22.0.json | 51 +++++++++++++++++++++++++++++++++++++++++++++++++ go@1.22.1.json | 51 +++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 261 insertions(+), 6 deletions(-) create mode 100644 go@1.19.13.json create mode 100644 go@1.20.14.json create mode 100644 go@1.21.7.json create mode 100644 go@1.22.0.json create mode 100644 go@1.22.1.json diff --git a/go.json b/go.json index 292423b..14399bc 100644 --- a/go.json +++ b/go.json @@ -1,5 +1,5 @@ { - "version": "1.19.2", + "version": "1.22.1", "description": "An open source programming language that makes it easy to build simple, reliable, and efficient software.", "homepage": "https://golang.org", "license": "BSD-3-Clause", @@ -25,19 +25,24 @@ "bin": ["bin/go.exe", "bin/gofmt.exe"], "architecture": { "64bit": { - "url": "https://dl.google.com/go/go1.19.2.windows-amd64.zip", - "hash": "sha256:e132d4f0518b0d417eb6cc5f182c3385f6d24bb2eebee2566cd1a7ab6097e3f2" + "url": "https://go.dev/dl/go1.22.1.windows-amd64.zip", + "hash": "sha256:cf9c66a208a106402a527f5b956269ca506cfe535fc388e828d249ea88ed28ba" }, "32bit": { - "url": "https://dl.google.com/go/go1.19.2.windows-386.zip", - "hash": "sha256:9355b09b23e9db33945a7ba45bb75981ab0bb6006713099732167722cf081b53" + "url": "https://go.dev/dl/go1.22.1.windows-386.zip", + "hash": "sha256:0c5ebb7eb39b7884ec99f92b425d4c03a96a72443562aafbf6e7d15c42a3108a" + }, + "arm64": { + "url": "https://go.dev/dl/go1.22.1.windows-arm64.zip", + "hash": "sha256:85b8511b298c9f4199ecae26afafcc3d46155bac934d43f2357b9224bcaa310f" } }, "checkver": { "url": "https://golang.org/dl/", "regex": "go([\\d.]+)\\.windows-" }, "autoupdate": { "architecture": { "64bit": { "url": "https://dl.google.com/go/go$version.windows-amd64.zip" }, - "32bit": { "url": "https://dl.google.com/go/go$version.windows-386.zip" } + "32bit": { "url": "https://dl.google.com/go/go$version.windows-386.zip" }, + "arm64": { "url": "https://dl.google.com/go/go$version.windows-arm64.zip" } }, "hash": { "url": "$url.sha256" } } diff --git a/go@1.19.13.json b/go@1.19.13.json new file mode 100644 index 0000000..5919b75 --- /dev/null +++ b/go@1.19.13.json @@ -0,0 +1,46 @@ +{ + "version": "1.19.13", + "description": "An open source programming language that makes it easy to build simple, reliable, and efficient software.", + "homepage": "https://golang.org", + "license": "BSD-3-Clause", + "extract_dir": "go", + "pre_install": [ + "# GOPATH", + "# respect USER value, if defined", + "if ($env:GOPATH) { } else {", + "# otherwise, 1st existing known default; otherwise, 1st of known defaults", + "$default_dirs = @( \"$env:USERPROFILE\\go\", \"$env:USERPROFILE\\.go\" )", + "$val = $( @($default_dirs |% { get-item $_ -ea silent }) + $default_dirs[0] ) | select -first 1", + "# ensure directory exists", + "new-item $val -type directory -force | out-null", + "env GOPATH -t $global $val", + "env GOPATH $val", + "}" + ], + "post_install": [ + "$default_dirs = @( $env:GOPATH, \"$env:USERPROFILE\\go\", \"$env:USERPROFILE\\.go\" )", + "$val = $( @($default_dirs |% { get-item $_ -ea silent }) + $default_dirs[0] ) | select -first 1", + "ensure_in_path \"$val\\bin\" $global" + ], + "bin": ["bin/go.exe", "bin/gofmt.exe"], + "architecture": { + "64bit": { + "url": "https://go.dev/dl/go1.19.13.windows-amd64.zip", + "hash": "sha256:908cba438f6f34fdf5ec8572f5f8759cb85b87f5c0b4fc4a389249bf92b86736" + }, + "32bit": { + "url": "https://go.dev/dl/go1.19.13.windows-386.zip", + "hash": "sha256:9aba3b0f79883313e833263ffef4610980c2818786ee65d5382b659d05a55d3f" + } + }, + "checkver": { "url": "https://golang.org/dl/", "regex": "go([\\d.]+)\\.windows-" }, + "autoupdate": { + "architecture": { + "64bit": { "url": "https://dl.google.com/go/go$version.windows-amd64.zip" }, + "32bit": { "url": "https://dl.google.com/go/go$version.windows-386.zip" } + }, + "hash": { "url": "$url.sha256" } + } + // "installer": { "script": "add_first_in_path \"$env:USERPROFILE\\go\\bin\" $global" }, + // "uninstaller": { "script": "remove_from_path \"$env:USERPROFILE\\go\\bin\" $global" } +} diff --git a/go@1.20.14.json b/go@1.20.14.json new file mode 100644 index 0000000..7855c79 --- /dev/null +++ b/go@1.20.14.json @@ -0,0 +1,51 @@ +{ + "version": "1.20.14", + "description": "An open source programming language that makes it easy to build simple, reliable, and efficient software.", + "homepage": "https://golang.org", + "license": "BSD-3-Clause", + "extract_dir": "go", + "pre_install": [ + "# GOPATH", + "# respect USER value, if defined", + "if ($env:GOPATH) { } else {", + "# otherwise, 1st existing known default; otherwise, 1st of known defaults", + "$default_dirs = @( \"$env:USERPROFILE\\go\", \"$env:USERPROFILE\\.go\" )", + "$val = $( @($default_dirs |% { get-item $_ -ea silent }) + $default_dirs[0] ) | select -first 1", + "# ensure directory exists", + "new-item $val -type directory -force | out-null", + "env GOPATH -t $global $val", + "env GOPATH $val", + "}" + ], + "post_install": [ + "$default_dirs = @( $env:GOPATH, \"$env:USERPROFILE\\go\", \"$env:USERPROFILE\\.go\" )", + "$val = $( @($default_dirs |% { get-item $_ -ea silent }) + $default_dirs[0] ) | select -first 1", + "ensure_in_path \"$val\\bin\" $global" + ], + "bin": ["bin/go.exe", "bin/gofmt.exe"], + "architecture": { + "64bit": { + "url": "https://go.dev/dl/go1.20.14.windows-amd64.zip", + "hash": "sha256:0e0d0190406ead891d94ecf00f961bb5cfa15ddd47499d2649f12eee80aee110" + }, + "32bit": { + "url": "https://go.dev/dl/go1.20.14.windows-386.zip", + "hash": "sha256:ceaa0e7a7c89604027d67bbcce72b8574080d5c34b68bd3152338402c9253ce2" + }, + "arm64": { + "url": "https://go.dev/dl/go1.20.14.windows-arm64.zip", + "hash": "sha256:67dfb9de6c4775d3deffb3bf87c204f22b2d0ddebebc6eec5917a69e27af7370" + } + }, + "checkver": { "url": "https://golang.org/dl/", "regex": "go([\\d.]+)\\.windows-" }, + "autoupdate": { + "architecture": { + "64bit": { "url": "https://dl.google.com/go/go$version.windows-amd64.zip" }, + "32bit": { "url": "https://dl.google.com/go/go$version.windows-386.zip" }, + "arm64": { "url": "https://dl.google.com/go/go$version.windows-arm64.zip" } + }, + "hash": { "url": "$url.sha256" } + } + // "installer": { "script": "add_first_in_path \"$env:USERPROFILE\\go\\bin\" $global" }, + // "uninstaller": { "script": "remove_from_path \"$env:USERPROFILE\\go\\bin\" $global" } +} diff --git a/go@1.21.7.json b/go@1.21.7.json new file mode 100644 index 0000000..0b13d77 --- /dev/null +++ b/go@1.21.7.json @@ -0,0 +1,51 @@ +{ + "version": "1.21.7", + "description": "An open source programming language that makes it easy to build simple, reliable, and efficient software.", + "homepage": "https://golang.org", + "license": "BSD-3-Clause", + "extract_dir": "go", + "pre_install": [ + "# GOPATH", + "# respect USER value, if defined", + "if ($env:GOPATH) { } else {", + "# otherwise, 1st existing known default; otherwise, 1st of known defaults", + "$default_dirs = @( \"$env:USERPROFILE\\go\", \"$env:USERPROFILE\\.go\" )", + "$val = $( @($default_dirs |% { get-item $_ -ea silent }) + $default_dirs[0] ) | select -first 1", + "# ensure directory exists", + "new-item $val -type directory -force | out-null", + "env GOPATH -t $global $val", + "env GOPATH $val", + "}" + ], + "post_install": [ + "$default_dirs = @( $env:GOPATH, \"$env:USERPROFILE\\go\", \"$env:USERPROFILE\\.go\" )", + "$val = $( @($default_dirs |% { get-item $_ -ea silent }) + $default_dirs[0] ) | select -first 1", + "ensure_in_path \"$val\\bin\" $global" + ], + "bin": ["bin/go.exe", "bin/gofmt.exe"], + "architecture": { + "64bit": { + "url": "https://go.dev/dl/go1.21.7.windows-amd64.zip", + "hash": "sha256:9ba8652778baded6e9a758c3129aae73393b4b75b230933bb0cf3ab65b19be35" + }, + "32bit": { + "url": "https://go.dev/dl/go1.21.7.windows-386.zip", + "hash": "sha256:f0574bc4a1e2964d4073a8de34f871f37d9bcebb3dbeccd1dc7d35e58904aa97" + }, + "arm64": { + "url": "https://go.dev/dl/go1.21.7.windows-arm64.zip", + "hash": "sha256:42924b8732c32b7fc1c1683ff0cff85fb779b6b9abf1f9933b8ac2fe3db218a5" + } + }, + "checkver": { "url": "https://golang.org/dl/", "regex": "go([\\d.]+)\\.windows-" }, + "autoupdate": { + "architecture": { + "64bit": { "url": "https://dl.google.com/go/go$version.windows-amd64.zip" }, + "32bit": { "url": "https://dl.google.com/go/go$version.windows-386.zip" }, + "arm64": { "url": "https://dl.google.com/go/go$version.windows-arm64.zip" } + }, + "hash": { "url": "$url.sha256" } + } + // "installer": { "script": "add_first_in_path \"$env:USERPROFILE\\go\\bin\" $global" }, + // "uninstaller": { "script": "remove_from_path \"$env:USERPROFILE\\go\\bin\" $global" } +} diff --git a/go@1.22.0.json b/go@1.22.0.json new file mode 100644 index 0000000..583f8ee --- /dev/null +++ b/go@1.22.0.json @@ -0,0 +1,51 @@ +{ + "version": "1.22.0", + "description": "An open source programming language that makes it easy to build simple, reliable, and efficient software.", + "homepage": "https://golang.org", + "license": "BSD-3-Clause", + "extract_dir": "go", + "pre_install": [ + "# GOPATH", + "# respect USER value, if defined", + "if ($env:GOPATH) { } else {", + "# otherwise, 1st existing known default; otherwise, 1st of known defaults", + "$default_dirs = @( \"$env:USERPROFILE\\go\", \"$env:USERPROFILE\\.go\" )", + "$val = $( @($default_dirs |% { get-item $_ -ea silent }) + $default_dirs[0] ) | select -first 1", + "# ensure directory exists", + "new-item $val -type directory -force | out-null", + "env GOPATH -t $global $val", + "env GOPATH $val", + "}" + ], + "post_install": [ + "$default_dirs = @( $env:GOPATH, \"$env:USERPROFILE\\go\", \"$env:USERPROFILE\\.go\" )", + "$val = $( @($default_dirs |% { get-item $_ -ea silent }) + $default_dirs[0] ) | select -first 1", + "ensure_in_path \"$val\\bin\" $global" + ], + "bin": ["bin/go.exe", "bin/gofmt.exe"], + "architecture": { + "64bit": { + "url": "https://go.dev/dl/go1.22.0.windows-amd64.zip", + "hash": "sha256:78b3158fe3aa358e0b6c9f26ecd338f9a11441e88bc434ae2e9f0ca2b0cc4dd3" + }, + "32bit": { + "url": "https://go.dev/dl/go1.22.0.windows-386.zip", + "hash": "sha256:553d44928509965cbda02a45b35ab01cf8b925534bc526a34e2d9dc7794b57e8" + }, + "arm64": { + "url": "https://go.dev/dl/go1.22.0.windows-arm64.zip", + "hash": "sha256:31a61e41d06a3bb2189a303f5f3e777ca4b454eff439f0a67bc2b166330021f4" + } + }, + "checkver": { "url": "https://golang.org/dl/", "regex": "go([\\d.]+)\\.windows-" }, + "autoupdate": { + "architecture": { + "64bit": { "url": "https://dl.google.com/go/go$version.windows-amd64.zip" }, + "32bit": { "url": "https://dl.google.com/go/go$version.windows-386.zip" }, + "arm64": { "url": "https://dl.google.com/go/go$version.windows-arm64.zip" } + }, + "hash": { "url": "$url.sha256" } + } + // "installer": { "script": "add_first_in_path \"$env:USERPROFILE\\go\\bin\" $global" }, + // "uninstaller": { "script": "remove_from_path \"$env:USERPROFILE\\go\\bin\" $global" } +} diff --git a/go@1.22.1.json b/go@1.22.1.json new file mode 100644 index 0000000..14399bc --- /dev/null +++ b/go@1.22.1.json @@ -0,0 +1,51 @@ +{ + "version": "1.22.1", + "description": "An open source programming language that makes it easy to build simple, reliable, and efficient software.", + "homepage": "https://golang.org", + "license": "BSD-3-Clause", + "extract_dir": "go", + "pre_install": [ + "# GOPATH", + "# respect USER value, if defined", + "if ($env:GOPATH) { } else {", + "# otherwise, 1st existing known default; otherwise, 1st of known defaults", + "$default_dirs = @( \"$env:USERPROFILE\\go\", \"$env:USERPROFILE\\.go\" )", + "$val = $( @($default_dirs |% { get-item $_ -ea silent }) + $default_dirs[0] ) | select -first 1", + "# ensure directory exists", + "new-item $val -type directory -force | out-null", + "env GOPATH -t $global $val", + "env GOPATH $val", + "}" + ], + "post_install": [ + "$default_dirs = @( $env:GOPATH, \"$env:USERPROFILE\\go\", \"$env:USERPROFILE\\.go\" )", + "$val = $( @($default_dirs |% { get-item $_ -ea silent }) + $default_dirs[0] ) | select -first 1", + "ensure_in_path \"$val\\bin\" $global" + ], + "bin": ["bin/go.exe", "bin/gofmt.exe"], + "architecture": { + "64bit": { + "url": "https://go.dev/dl/go1.22.1.windows-amd64.zip", + "hash": "sha256:cf9c66a208a106402a527f5b956269ca506cfe535fc388e828d249ea88ed28ba" + }, + "32bit": { + "url": "https://go.dev/dl/go1.22.1.windows-386.zip", + "hash": "sha256:0c5ebb7eb39b7884ec99f92b425d4c03a96a72443562aafbf6e7d15c42a3108a" + }, + "arm64": { + "url": "https://go.dev/dl/go1.22.1.windows-arm64.zip", + "hash": "sha256:85b8511b298c9f4199ecae26afafcc3d46155bac934d43f2357b9224bcaa310f" + } + }, + "checkver": { "url": "https://golang.org/dl/", "regex": "go([\\d.]+)\\.windows-" }, + "autoupdate": { + "architecture": { + "64bit": { "url": "https://dl.google.com/go/go$version.windows-amd64.zip" }, + "32bit": { "url": "https://dl.google.com/go/go$version.windows-386.zip" }, + "arm64": { "url": "https://dl.google.com/go/go$version.windows-arm64.zip" } + }, + "hash": { "url": "$url.sha256" } + } + // "installer": { "script": "add_first_in_path \"$env:USERPROFILE\\go\\bin\" $global" }, + // "uninstaller": { "script": "remove_from_path \"$env:USERPROFILE\\go\\bin\" $global" } +}