Skip to content

Commit 5d0051d

Browse files
committed
deps: update all dependencies
Updating all go and bazel dependencies to make sure get the latest, updating CI for bazel7+, dropping WORKSPACE support
1 parent 9d138ba commit 5d0051d

File tree

14 files changed

+91
-42
lines changed

14 files changed

+91
-42
lines changed

.bazelrc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
common --enable_bzlmod
2-
31
# Bazel settings that apply to this repository.
42
# Take care to document any settings that you expect users to apply.
53
# Settings that apply only to CI are in .github/workflows/ci.bazelrc

.bazelversion

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/ci.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ concurrency:
1717

1818
jobs:
1919
test:
20-
uses: bazel-contrib/.github/.github/workflows/bazel.yaml@v2
20+
uses: bazel-contrib/.github/.github/workflows/bazel.yaml@v7.2.0
2121
with:
2222
folders: '[".", "e2e/smoke"]'
23-
23+
exclude: |
24+
[
25+
{"folder": ".", "bzlmodEnabled": false},
26+
{"folder": "e2e/smoke", "bzlmodEnabled": false}
27+
]

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ bazel-*
22
.bazelrc.user
33
.idea/
44
.ijwb/
5+
MODULE.bazel.lock

BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
load("@gazelle//:def.bzl", "gazelle", "gazelle_binary")
21
load("@buildifier_prebuilt//:rules.bzl", "buildifier")
2+
load("@gazelle//:def.bzl", "gazelle", "gazelle_binary")
33

44
buildifier(
55
name = "buildifier",

MODULE.bazel

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@ module(
44
compatibility_level = 0,
55
)
66

7-
bazel_dep(name = "rules_go", version = "0.39.0")
8-
bazel_dep(name = "gazelle", version = "0.30.0")
9-
bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.4.1", dev_dependency = True)
10-
bazel_dep(name = "bazel_skylib", version = "1.4.1")
11-
bazel_dep(name = "buildifier_prebuilt", version = "6.0.0.1", dev_dependency = True)
12-
bazel_dep(name = "rules_pkg", version = "0.9.0")
13-
bazel_dep(name = "aspect_bazel_lib", version = "1.30.2")
7+
bazel_dep(name = "rules_go", version = "0.53.0")
8+
bazel_dep(name = "gazelle", version = "0.42.0")
9+
10+
bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.7.1", dev_dependency = True)
11+
12+
bazel_dep(name = "bazel_skylib", version = "1.7.1")
13+
14+
bazel_dep(name = "buildifier_prebuilt", version = "8.0.3", dev_dependency = True)
15+
16+
bazel_dep(name = "rules_pkg", version = "1.1.0")
17+
bazel_dep(name = "aspect_bazel_lib", version = "2.14.0")
1418

1519
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
1620
go_deps.from_file(
@@ -22,3 +26,12 @@ use_repo(
2226
"com_github_aws_aws_sdk_go_v2_config",
2327
"com_github_aws_aws_sdk_go_v2_service_lambda",
2428
)
29+
30+
http_file = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
31+
32+
http_file(
33+
name = "test_tar_gz",
34+
dev_dependency = True,
35+
sha256 = "45768f4266fa6b2979213ad75085155b3b63fae89977b7d66e8736044a3c0a50",
36+
url = "https://github.com/bazelbuild/bazel-gazelle/archive/4dfcb75883c6ca2441e6ad17173488068adcfb1c.tar.gz",
37+
)

e2e/smoke/.bazelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
common --enable_bzlmod
1+
# empty

e2e/smoke/BUILD

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,11 @@ update_function_code(
2424
zip_file = ":test_zip",
2525
)
2626

27-
2827
build_test(
2928
name = "smoke_test",
3029
targets = [
3130
":test_tar",
3231
":test_zip",
33-
":update-lambda"
32+
":update-lambda",
3433
],
3534
)

e2e/smoke/MODULE.bazel

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
bazel_dep(name = "com_booking_rules_lambda", version = "0.0.1")
2-
bazel_dep(name = "bazel_skylib", version = "1.4.1")
2+
bazel_dep(name = "bazel_skylib", version = "1.7.1")
33

44
local_path_override(
55
module_name = "com_booking_rules_lambda",
66
path = "../..",
77
)
8+
9+
http_file = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
10+
11+
http_file(
12+
name = "test_tar_gz",
13+
dev_dependency = True,
14+
sha256 = "45768f4266fa6b2979213ad75085155b3b63fae89977b7d66e8736044a3c0a50",
15+
url = "https://github.com/bazelbuild/bazel-gazelle/archive/4dfcb75883c6ca2441e6ad17173488068adcfb1c.tar.gz",
16+
)

e2e/smoke/WORKSPACE.bazel

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)