Skip to content

Commit

Permalink
Update more versions and fix failures
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Nov 7, 2024
1 parent 42ac324 commit 1690418
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 23 deletions.
9 changes: 0 additions & 9 deletions .bazelci/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ tasks:
ubuntu2204:
name: Ubuntu 22.04 with WORKSPACE
platform: ubuntu2204
bazel: 7.1.1
build_flags:
- "--noexperimental_enable_bzlmod"
test_flags:
Expand All @@ -27,7 +26,6 @@ tasks:
ubuntu2204_bzlmod:
name: Ubuntu 22.04 with Bzlmod
platform: ubuntu2204
bazel: 7.1.1
build_targets:
- "..."
run_targets:
Expand Down Expand Up @@ -88,7 +86,6 @@ tasks:
macos_arm64_bzlmod:
name: Mac OS Arm 64 with Bzlmod
platform: macos_arm64
bazel: 7.1.1
build_targets:
- "..."
test_targets:
Expand All @@ -98,7 +95,6 @@ tasks:
macos_arm64:
name: Mac OS Arm 64 with WORKSPACE
platform: macos_arm64
bazel: 7.1.1
build_flags:
- "--noexperimental_enable_bzlmod"
test_flags:
Expand All @@ -113,7 +109,6 @@ tasks:
macos_bzlmod:
name: Mac OS with Bzlmod
platform: macos
bazel: 7.1.1
build_targets:
- "..."
test_targets:
Expand All @@ -123,7 +118,6 @@ tasks:
macos:
name: Mac OS with WORKSPACE
platform: macos
bazel: 7.1.1
build_flags:
- "--noexperimental_enable_bzlmod"
test_flags:
Expand All @@ -135,7 +129,6 @@ tasks:
windows_bzlmod:
name: Windows with Bzlmod
platform: windows
bazel: 7.1.1
build_targets:
- "--"
- "..."
Expand All @@ -159,7 +152,6 @@ tasks:
windows:
name: Windows with WORKSPACE
platform: windows
bazel: 7.1.1
build_flags:
- "--noexperimental_enable_bzlmod"
test_flags:
Expand All @@ -186,7 +178,6 @@ tasks:
incompatible:
name: Ubuntu 22.04 with WORKSPACE and --config=incompatible
platform: ubuntu2204
bazel: 7.1.1
build_flags:
- "--noexperimental_enable_bzlmod"
- "--config=incompatible"
Expand Down
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.4.0
7.x
4 changes: 2 additions & 2 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ gazelle_binary(
)

go_cross_binary(
name = "gazelle_local_go1.19",
sdk_version = "1.19",
name = "gazelle_local_go1.20",
sdk_version = "1.20",
target = ":gazelle_local",
)

Expand Down
4 changes: 2 additions & 2 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.4.1", dev_dependenc
bazel_dep(name = "stardoc", version = "0.6.2", dev_dependency = True, repo_name = "io_bazel_stardoc")

go_sdk_dev = use_extension("@io_bazel_rules_go//go:extensions.bzl", "go_sdk", dev_dependency = True)
go_sdk_dev.download(version = "1.23.2")
go_sdk_dev.download(version = "1.23.3")

# Used by compatibility tests, keep as low as possible.
go_sdk_dev.download(version = "1.19.13")
go_sdk_dev.download(version = "1.20.14")

# Known to exist since it is instantiated by rules_go itself.
use_repo(
Expand Down
6 changes: 4 additions & 2 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ load("@io_bazel_rules_go//go:deps.bzl", "go_download_sdk", "go_register_nogo", "

go_rules_dependencies()

go_register_toolchains(version = "1.23.2")
go_register_toolchains(version = "1.23.3")

go_register_nogo(
excludes = [
Expand All @@ -49,9 +49,11 @@ go_register_nogo(
nogo = "@bazel_gazelle//:nogo",
)

# Go 1.20 is needed so support nogo's use of token.File.FileStart.
# Go 1.19 is needed for recent versions of golang.org/x/tools.
go_download_sdk(
name = "go_compat_sdk",
version = "1.19.13",
version = "1.20.14",
)

load("//:deps.bzl", "gazelle_dependencies")
Expand Down
6 changes: 3 additions & 3 deletions cmd/fetch_repo/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ go_binary(
visibility = ["//visibility:public"],
)

# Verify that fetch_repo builds with Go 1.19.
# Verify that fetch_repo builds with Go 1.20.
go_cross_binary(
name = "fetch_repo_go1.19",
sdk_version = "1.19",
name = "fetch_repo_go1.20",
sdk_version = "1.20",
target = ":fetch_repo",
)

Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module github.com/bazelbuild/bazel-gazelle

go 1.22.0
go 1.22

toolchain go1.23.2
toolchain go1.23.3

require (
github.com/bazelbuild/buildtools v0.0.0-20240918101019-be1c24cc9a44
Expand Down
2 changes: 1 addition & 1 deletion tests/bcr/go_mod/.bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.4.0
7.x
1 change: 1 addition & 0 deletions tests/bcr/go_mod/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ bazel_dep(name = "rules_proto", version = "6.0.0-rc2", repo_name = "my_rules_pro
bazel_dep(name = "rules_testing", version = "0.6.0")

go_sdk = use_extension("@my_rules_go//go:extensions.bzl", "go_sdk")
go_sdk.download(version = "1.23.3")

# This bazel_dep provides the Go dependency github.com/cloudflare/circl, which requires custom
# patches beyond what Gazelle can generate.
Expand Down
2 changes: 1 addition & 1 deletion tests/bcr/go_work/.bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.4.0
7.x
1 change: 1 addition & 0 deletions tests/bcr/go_work/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ bazel_dep(name = "rules_go", version = "0.50.1", repo_name = "my_rules_go")
bazel_dep(name = "rules_proto", version = "6.0.0-rc2", repo_name = "my_rules_proto")

go_sdk = use_extension("@my_rules_go//go:extensions.bzl", "go_sdk")
go_sdk.download(version = "1.23.3")

# This bazel_dep provides the Go dependency github.com/cloudflare/circl, which requires custom
# patches beyond what Gazelle can generate.
Expand Down

0 comments on commit 1690418

Please sign in to comment.