Releases: jacobshirley/rules_postgresql
Releases · jacobshirley/rules_postgresql
v1.0.0
Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmodin.bazelrc. - Add to your
MODULE.bazelfile:
bazel_dep(name = "rules_postgresql", version = "1.0.0")Using WORKSPACE
Paste this snippet into your file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_postgresql",
sha256 = "84aec0b66d12e35211f18f0714dd61150c4d72e66802e078453e7dd30be7e7c7",
strip_prefix = "rules_postgresql-1.0.0",
url = "https://github.com/jacobshirley/rules_postgresql/releases/download/v1.0.0/rules_postgresql-v1.0.0.tar.gz",
)
######################
# rules_postgresql setup #
######################
# Fetches the rules_postgresql dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@rules_postgresql//postgresql:deps.bzl", "rules_postgresql_dependencies")
rules_postgresql_dependencies()
load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies")
rules_foreign_cc_dependencies()
load("@rules_postgresql//postgresql:repositories.bzl", "postgresql_register_toolchains")
postgresql_register_toolchains(
name = "postgresql_15_3",
postgresql_version = "15.3",
)
load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies")
# Required bazel-lib dependencies
aspect_bazel_lib_dependencies()Full Changelog: https://github.com/jacobshirley/rules_postgresql/commits/v1.0.0