Skip to content

Commit

Permalink
Implement bzlmod
Browse files Browse the repository at this point in the history
  • Loading branch information
ewianda committed Dec 28, 2023
1 parent 552f551 commit 49a4c3f
Show file tree
Hide file tree
Showing 10 changed files with 1,469 additions and 58 deletions.
27 changes: 27 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
module(
name = "com_github_benchsci_rules_python_gazelle",
version = "0.0.0",
compatibility_level = 1,
)

bazel_dep(name = "rules_python", version = "0.27.1")
bazel_dep(name = "rules_go", version = "0.41.0", repo_name = "io_bazel_rules_go")
bazel_dep(name = "gazelle", version = "0.33.0", repo_name = "bazel_gazelle")

go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//:go.mod")
use_repo(
go_deps,
"com_github_bazelbuild_buildtools",
"com_github_emirpasic_gods",
"com_github_ghodss_yaml",
"com_github_google_uuid",
"in_gopkg_yaml_v2",
)

# (Optional) Register a specific python toolchain instead of using the host version
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
python_version = "3.9",
)
use_repo(python, "python_3_9")
Loading

0 comments on commit 49a4c3f

Please sign in to comment.