Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert to bzlmod, rules_oci, and add golang support #17

Merged
merged 9 commits into from
Mar 4, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
bzlmod: get rules_python converted to bzlmod
jessecureton committed Feb 20, 2024
commit b18a8373d1b31d3228545a4b23d3f8d146f5cd8e
5 changes: 0 additions & 5 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
test --test_output=errors

# The hermetic python interpreter we configure in WORKSPACE
# does not work with bzlmod enabled, so we just disable it
# for now
common --noenable_bzlmod
32 changes: 32 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
module(name = "${project}")

########################################
# Setings
########################################
PY_VERSION = "3.11.6"
_SANI_PY_VERSION = PY_VERSION.replace(".", "_")


########################################
# Set up rules_python and pip
########################################
bazel_dep(name = "rules_python", version = "0.31.0")

python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
python_version = PY_VERSION,
is_default = True,
)

pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
hub_name = "pip",
requirements_lock = "//:requirements_lock.txt",
python_version = PY_VERSION,
)
use_repo(pip, "pip")

########################################
# Set up rules_pkg
########################################
bazel_dep(name = "rules_pkg", version = "0.10.1")
Loading