Skip to content

Commit

Permalink
Implement bzlmod
Browse files Browse the repository at this point in the history
  • Loading branch information
ewianda committed Dec 29, 2023
1 parent 552f551 commit 2174ec3
Show file tree
Hide file tree
Showing 15 changed files with 1,477 additions and 68 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 2174ec3

Please sign in to comment.