Skip to content

Gauging interest in a PR that lets a user add additional bats libraries #68

Description

@leviable

I've been working on a patch to bazel-bats that lets a user include additional bats libraries via their MODULE.bazel. The API for the end user would look something like this:

bazel_dep(name = "bazel_bats", version = "0.38.9")

bazel_bats = use_extension("@bazel_bats//:extensions.bzl", "bazel_bats_deps")
bazel_bats.bats_lib(
    name = "bats-file",
    version = "0.4.0",
    sha256 = "9b69043241f3af1c2d251f89b4fcafa5df3f05e97b89db18d7c9bdf5731bb27a",
)
bazel_bats.bats_lib(
    name = "bats-mock",
    version = "2.2.0",
    sha256 = "a997ebc190cdc9d5a08a51a9f7a6ddd54999bf9a0fcc899b1ae739ba12a90216",
    github_org = "buildkite-plugins",
)

use_repo(
    bazel_bats,
    "bats_core",
    "bats_support",
    "bats_assert",
    "bats_file",
    "bats_mock",
)

Would you be interested in a PR to add that functionality? If so, what would be your conditions and/or restrictions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions