Repository navigation
v0.3.0
Using Bzlmod
Add to your MODULE.bazel:
bazel_dep(name = "rules_tofu", version = "0.3.0")
tofu = use_extension("@rules_tofu//toolchain:extensions.bzl", "tofu")
use_repo(tofu, "tofu_toolchains")Highlights
Providers from a lock file. tf_providers.from_lock() pins providers with a standard .terraform.lock.hcl, which Renovate and Dependabot can keep up to date, and bazel run @tf_providers//:pin writes it. This is now the documented default; see Providers in the README.
Breaking change
Every provider is now named through the @tf_providers hub, as @tf_providers//<namespace>/<name>. The per-provider repos (tf_providers_<namespace>_<name>) are private (#38).
Before:
# MODULE.bazel
use_repo(tf_providers, "tf_providers_hashicorp_aws")
# BUILD.bazel
providers = ["@tf_providers_hashicorp_aws//:provider"],After:
# MODULE.bazel (`bazel mod tidy` makes this change)
use_repo(tf_providers, "tf_providers")
# BUILD.bazel
providers = ["@tf_providers//hashicorp/aws"],tf_providers.provider tags themselves are unchanged.
What's Changed
- ci: fail on a stale MODULE.bazel.lock on the pinned Bazel by @benbirt in #36
- feat: vendor each provider's whole package, not just its binary by @benbirt in #37
- feat!: name every provider via the @tf_providers hub; make provider repos private by @benbirt in #38
- feat: take provider pins from .terraform.lock.hcl with from_lock by @benbirt in #39
Full Changelog: v0.2.0...v0.3.0