Skip to content

Commit

Permalink
Upgrade: Go SDK to 1.22.5 (#599)
Browse files Browse the repository at this point in the history
* bump Go SDK to 1.22.5

* bump rules_go, gazelle and platforms to their respective latest version on BCR

* readme: removed reference to EOL Go versions
  • Loading branch information
albertocavalcante authored Aug 5, 2024
1 parent 54fbae3 commit 99ab439
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
9 changes: 4 additions & 5 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
module(name = "bazelisk", version="")

bazel_dep(name = "gazelle", version = "0.32.0", repo_name = "bazel_gazelle")
bazel_dep(name = "platforms", version = "0.0.7")
bazel_dep(name = "rules_go", version = "0.41.0", repo_name = "io_bazel_rules_go")
bazel_dep(name = "gazelle", version = "0.38.0", repo_name = "bazel_gazelle")
bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "rules_go", version = "0.49.0", repo_name = "io_bazel_rules_go")
bazel_dep(name = "aspect_rules_js", version = "1.39.1")
# -- bazel_dep definitions -- #

go_sdk = use_extension("@io_bazel_rules_go//go:extensions.bzl", "go_sdk")
go_sdk.download(version = "1.20.5")
go_sdk.download(version = "1.22.5")

go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//:go.mod")
Expand Down
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,15 +202,10 @@ Configuration variables are evaluated with precedence order. The preferred value

For ease of use, the Python version of Bazelisk is written to work with Python 2.7 and 3.x and only uses modules provided by the standard library.

The Go version can be compiled to run natively on Linux, macOS and Windows.
You need at least Go 1.11 to build Bazelisk, otherwise you'll run into errors like `undefined: os.UserCacheDir`.
The Go version can be compiled to run natively on Linux, macOS and Windows.

To install the Go version, type:
To install it, run:

```shell
go get github.com/bazelbuild/bazelisk
```
With Go 1.17 or later, the recommended way to install it is:
```shell
go install github.com/bazelbuild/bazelisk@latest
```
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/bazelbuild/bazelisk

go 1.18
go 1.22

require (
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d
Expand Down

0 comments on commit 99ab439

Please sign in to comment.