Skip to content

Commit fec36a9

Browse files
authored
chore(bazel): add MODULE.bazel files for bzlmod (#557)
Signed-off-by: Matthieu MOREL <[email protected]>
1 parent 006c13b commit fec36a9

File tree

4 files changed

+26
-3
lines changed

4 files changed

+26
-3
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77

88
# Binary created by 'go build'
99
/bazelisk
10-
/bazelisk.exe
10+
/bazelisk.exe
11+
MODULE.bazel.lock

MODULE.bazel

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module(name = "bazelisk", version="")
2+
3+
bazel_dep(name = "bazel_skylib", version = "1.4.2")
4+
bazel_dep(name = "gazelle", version = "0.32.0", repo_name = "bazel_gazelle")
5+
bazel_dep(name = "platforms", version = "0.0.7")
6+
bazel_dep(name = "rules_nodejs", version = "5.5.3", repo_name = "build_bazel_rules_nodejs")
7+
bazel_dep(name = "rules_go", version = "0.41.0", repo_name = "io_bazel_rules_go")
8+
# -- bazel_dep definitions -- #
9+
10+
go_sdk = use_extension("@io_bazel_rules_go//go:extensions.bzl", "go_sdk")
11+
go_sdk.download(version = "1.20.5")
12+
13+
go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps")
14+
go_deps.from_file(go_mod = "//:go.mod")
15+
use_repo(
16+
go_deps,
17+
"com_github_hashicorp_go_version",
18+
"com_github_mitchellh_go_homedir",
19+
"com_github_bgentry_go_netrc",
20+
"org_golang_x_term",
21+
)

WORKSPACE.bzlmod

Whitespace-only changes.

go.mod

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ require (
66
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d
77
github.com/hashicorp/go-version v1.6.0
88
github.com/mitchellh/go-homedir v1.1.0
9-
golang.org/x/term v0.13.0
10-
golang.org/x/sys v0.13.0
9+
golang.org/x/term v0.13.0
1110
)
11+
12+
require golang.org/x/sys v0.13.0 // indirect

0 commit comments

Comments
 (0)