Skip to content

Releases: bazel-contrib/bazel-lib

v1.6.0

15 Jul 15:14
Compare
Choose a tag to compare

Using Bzlmod:

  1. Enable with --experimental_enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "aspect_bazel_lib", version = "1.6.0")

Read more about bzlmod: https://blog.aspect.dev/bzlmod

Using WORKSPACE

Paste this snippet into your file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "aspect_bazel_lib",
    sha256 = "7588d9d119b614b993c0ef1de35f41f7e47203ee17e34bcede536524e91bc55d",
    strip_prefix = "bazel-lib-1.6.0",
    url = "https://github.com/aspect-build/bazel-lib/archive/refs/tags/v1.6.0.tar.gz",
)

load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies")

aspect_bazel_lib_dependencies()

Optional toolchains:

# Register the following toolchain to use jq

load("@aspect_bazel_lib//lib:repositories.bzl", "register_jq_toolchains")

register_jq_toolchains()

# Register the following toolchain to use yq

load("@aspect_bazel_lib//lib:repositories.bzl", "register_yq_toolchains")

register_yq_toolchains()

What's Changed

  • fix: diff_test not working for files in directories starting with "external" by @kormide in #182
  • Add utility for checking file existence. by @alexeagle in #184
  • Basic stamping support by @alexeagle in #186

Full Changelog: v1.5.1...v1.6.0

v1.5.1

06 Jul 18:23
Compare
Choose a tag to compare

Using Bzlmod:

  1. Enable with --experimental_enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "aspect_bazel_lib", version = "1.5.1")

Read more about bzlmod: https://blog.aspect.dev/bzlmod

Using WORKSPACE

Paste this snippet into your file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "aspect_bazel_lib",
    sha256 = "8a329d66e95b36efcfb66e0c1074e5f36b9be7e5b6fce96605315db088eb1407",
    strip_prefix = "bazel-lib-1.5.1",
    url = "https://github.com/aspect-build/bazel-lib/archive/refs/tags/v1.5.1.tar.gz",
)

load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies")

aspect_bazel_lib_dependencies()

Optional toolchains:

# Register the following toolchain to use jq

load("@aspect_bazel_lib//lib:repositories.bzl", "register_jq_toolchains")

register_jq_toolchains()

# Register the following toolchain to use yq

load("@aspect_bazel_lib//lib:repositories.bzl", "register_yq_toolchains")

register_yq_toolchains()

What's Changed

  • chore: change the auto bcr presubmit.yml by @kormide in #177
  • fix: fix broken link in README by @kormide in #178
  • docs: encourage use of latest yq/jq in docs by @kormide in #179
  • fix: remote target_compatible_with from jq and yq toolchains by @kormide in #181

Full Changelog: v1.5.0...v1.5.1

v1.5.0

28 Jun 17:49
Compare
Choose a tag to compare

Using Bzlmod:

  1. Enable with --experimental_enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "aspect_bazel_lib", version = "1.5.0")

Read more about bzlmod: https://blog.aspect.dev/bzlmod

Using WORKSPACE

Paste this snippet into your file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "aspect_bazel_lib",
    sha256 = "e519592a1f0b7c27334b3a50d4d9f3f7c0d929253681e83d6fb2d60009a32f11",
    strip_prefix = "bazel-lib-1.5.0",
    url = "https://github.com/aspect-build/bazel-lib/archive/refs/tags/v1.5.0.tar.gz",
)

load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies")

aspect_bazel_lib_dependencies()

Optional toolchains:

# Register the following toolchain to use jq

load("@aspect_bazel_lib//lib:repositories.bzl", "register_jq_toolchains")

register_jq_toolchains()

# Register the following toolchain to use yq

load("@aspect_bazel_lib//lib:repositories.bzl", "register_yq_toolchains")

register_yq_toolchains()

What's Changed

Full Changelog: v1.4.0...v1.5.0

v1.4.0

28 Jun 05:02
Compare
Choose a tag to compare

Using Bzlmod:

  1. Enable with --experimental_enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "aspect_bazel_lib", version = "1.4.0")

Read more about bzlmod: https://blog.aspect.dev/bzlmod

Using WORKSPACE

Paste this snippet into your file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "aspect_bazel_lib",
    sha256 = "8cf53f6c33bce4550cbd1ad41796f044fbaaa422b96218bcc71b69e6595205bf",
    strip_prefix = "bazel-lib-1.4.0",
    url = "https://github.com/aspect-build/bazel-lib/archive/refs/tags/v1.4.0.tar.gz",
)

load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies")

aspect_bazel_lib_dependencies()

Optional toolchains:

# Register the following toolchain to use jq

load("@aspect_bazel_lib//lib:repositories.bzl", "register_jq_toolchains")

register_jq_toolchains()

# Register the following toolchain to use yq

load("@aspect_bazel_lib//lib:repositories.bzl", "register_yq_toolchains")

register_yq_toolchains()

What's Changed

  • feat: let jq act like copy_to_bin by @alexeagle in #169
  • feat: add buildozer command to add visibility to the copy_to_bin helper error by @mattem in #171
  • fix: improve copy_to_bin error messaging when file is in external repo by @kormide in #168
  • ci: change token for bcr publish by @kormide in #172
  • docs: add a note about excluding from linters/formatters by @Aghassi in #156
  • chore(deps): update dependency bazel to v5.2.0 by @renovate in #170
  • Err msg by @alexeagle in #175

New Contributors

Full Changelog: v1.3.1...v1.4.0

v1.3.1

21 Jun 03:47
63ae772
Compare
Choose a tag to compare

Using Bzlmod:

  1. Enable with --experimental_enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "aspect_bazel_lib", version = "1.3.1")

Read more about bzlmod: https://blog.aspect.dev/bzlmod

Using WORKSPACE

Paste this snippet into your file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "aspect_bazel_lib",
    sha256 = "4ef2f746bae7bd7f1ec39dc9b53a9d7e8002f18233ea2c2ee4702bbb5283c7ca",
    strip_prefix = "bazel-lib-1.3.1",
    url = "https://github.com/aspect-build/bazel-lib/archive/refs/tags/v1.3.1.tar.gz",
)

load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies")

aspect_bazel_lib_dependencies()

Optional toolchains:

# Register the following toolchain to use jq

load("@aspect_bazel_lib//lib:repositories.bzl", "register_jq_toolchains")

register_jq_toolchains()

# Register the following toolchain to use yq

load("@aspect_bazel_lib//lib:repositories.bzl", "register_yq_toolchains")

register_yq_toolchains()

What's Changed

New Contributors

Full Changelog: v1.3.0...v1.3.1

v1.3.0

17 Jun 00:01
b3c2884
Compare
Choose a tag to compare

Using Bzlmod:

  1. Enable with --experimental_enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "aspect_bazel_lib", version = "1.3.0")

Read more about bzlmod: https://blog.aspect.dev/bzlmod

Using WORKSPACE

Paste this snippet into your file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "aspect_bazel_lib",
    sha256 = "8860aab705fe9f427fbebe388bdfacf8a6b267cb3c0d71ebeaf1dcceedd29193",
    strip_prefix = "bazel-lib-1.3.0",
    url = "https://github.com/aspect-build/bazel-lib/archive/refs/tags/v1.3.0.tar.gz",
)

load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies")

aspect_bazel_lib_dependencies()

Optional toolchains:

# Register the following toolchain to use jq

load("@aspect_bazel_lib//lib:repositories.bzl", "register_jq_toolchains")

register_jq_toolchains()

# Register the following toolchain to use yq

load("@aspect_bazel_lib//lib:repositories.bzl", "register_yq_toolchains")

register_yq_toolchains()

What's Changed

  • fix: don't set assignees for bcr pr by @kormide in #159
  • feat: add out_dirs to run_binary rule and deprecate output_dir by @gregmagolan in #160
  • feat: add mnemonic, progress_message && execution_requirements to run_binary by @gregmagolan in #161

Full Changelog: v1.2.1...v1.3.0

v1.2.1

16 Jun 19:12
Compare
Choose a tag to compare

Using Bzlmod:

  1. Enable with --experimental_enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "aspect_bazel_lib", version = "1.2.1")

Read more about bzlmod: https://blog.aspect.dev/bzlmod

Using WORKSPACE

Paste this snippet into your file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "aspect_bazel_lib",
    sha256 = "a62838a8bb32478db2cf557b59279e566d628e064f91071daf1986c32463c2c9",
    strip_prefix = "bazel-lib-1.2.1",
    url = "https://github.com/aspect-build/bazel-lib/archive/refs/tags/v1.2.1.tar.gz",
)

load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies")

aspect_bazel_lib_dependencies()

Optional toolchains:

# Register the following toolchain to use jq

load("@aspect_bazel_lib//lib:repositories.bzl", "register_jq_toolchains")

register_jq_toolchains()

# Register the following toolchain to use yq

load("@aspect_bazel_lib//lib:repositories.bzl", "register_yq_toolchains")

register_yq_toolchains()

What's Changed

  • fix: fix a bug where write_source_files diff_test fails on windows when a source is from an external repository by @kormide in #155
  • fix: fix a bug where two copy_to_bin actions couldn't copy the same file by @kormide in #157
  • chore: create a pull request against our bcr fork on successful release by @kormide in #158

Full Changelog: v1.2.0...v1.2.1

v1.2.0

15 Jun 03:40
6ba7c64
Compare
Choose a tag to compare

Using Bzlmod:

  1. Enable with --experimental_enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "aspect_bazel_lib", version = "1.2.0")

Read more about bzlmod: https://blog.aspect.dev/bzlmod

Using WORKSPACE

Paste this snippet into your file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "aspect_bazel_lib",
    sha256 = "2db5b7176459c23f35a6cd45ff466fc3784bb17fdfa17a9bfeb1ac837796464c",
    strip_prefix = "bazel-lib-1.2.0",
    url = "https://github.com/aspect-build/bazel-lib/archive/refs/tags/v1.2.0.tar.gz",
)

load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies")

aspect_bazel_lib_dependencies()

Optional toolchains:

# Register the following toolchain to use jq

load("@aspect_bazel_lib//lib:repositories.bzl", "register_jq_toolchains")

register_jq_toolchains()

# Register the following toolchain to use yq

load("@aspect_bazel_lib//lib:repositories.bzl", "register_yq_toolchains")

register_yq_toolchains()

What's Changed

  • feat: add allow_overwrites attribute to copy_to_directory and disable overwrites as the default behavior on linux and macos by @gregmagolan in #153

Full Changelog: v1.1.0...v1.2.0

v1.1.0

14 Jun 13:51
Compare
Choose a tag to compare

Using Bzlmod:

  1. Enable with --experimental_enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "aspect_bazel_lib", version = "1.1.0")

Read more about bzlmod: https://blog.aspect.dev/bzlmod

Using WORKSPACE

Paste this snippet into your file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "aspect_bazel_lib",
    sha256 = "c5dac6d324e847aef36d3b87961df43709fd1ea1b77bc643faf6bf8e218f713a",
    strip_prefix = "bazel-lib-1.1.0",
    url = "https://github.com/aspect-build/bazel-lib/archive/refs/tags/v1.1.0.tar.gz",
)

load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies")

aspect_bazel_lib_dependencies()

Optional toolchains:

# Register the following toolchain to use jq

load("@aspect_bazel_lib//lib:repositories.bzl", "register_jq_toolchains")

register_jq_toolchains()

# Register the following toolchain to use yq

load("@aspect_bazel_lib//lib:repositories.bzl", "register_yq_toolchains")

register_yq_toolchains()

What's Changed

  • chore: remove hardcoded toolchain versions from workspace snippet by @kormide in #131
  • Use PAT to publish prs to bcr on release by @kormide in #132
  • fix: copy_to_directory repairs read-only file permissions by @alexeagle in #134
  • Configure Renovate by @renovate in #135
  • refactor: remove use of maybe() helper by @alexeagle in #138
  • chore(deps): update actions/cache action to v3 by @renovate in #139
  • chore(deps): update actions/checkout action to v3 by @renovate in #140
  • chore(deps): update dependency io_bazel_stardoc to v0.5.1 by @renovate in #143
  • refactor: nicer pattern for inlined maybe by @alexeagle in #144
  • chore(deps): update actions/setup-node action to v3 by @renovate in #148
  • chore(deps): update dependency io_bazel_rules_go to v0.33.0 by @renovate in #147
  • chore(deps): update dependency bazel_skylib to v1.2.1 by @renovate in #146
  • chore(deps): update bazelbuild/setup-bazelisk action to v2 by @renovate in #149
  • feat: add to_output_relative_path by @alexeagle in #150
  • chore: warn when copy_to_bin reads from bazel-out by @alexeagle in #151
  • chore: cleanup fail msgs with substitutions for cleaner error logs by @gregmagolan in #152

New Contributors

Full Changelog: v1.0.0...v1.1.0

v1.0.0

06 Jun 18:42
021b24e
Compare
Choose a tag to compare

Using Bzlmod:

  1. Enable with --experimental_enable_bzlmod in .bazelrc.
  2. Until Google merges bazelbuild/bazel-central-registry#94 you'll need to use our fork of the registry. Add to .bazelrc:

common --registry=https://raw.githubusercontent.com/aspect-build/bazel-central-registry/main/

  1. Add to your MODULE.bazel file:
bazel_dep(name = "aspect_bazel_lib", version = "1.0.0")

Read more about bzlmod: https://blog.aspect.dev/bzlmod

Using WORKSPACE

Paste this snippet into your file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "aspect_bazel_lib",
    sha256 = "b381ac4dca544ecc5515916f38066e9793628477e2577edb7b2ab04e8c210738",
    strip_prefix = "bazel-lib-1.0.0",
    url = "https://github.com/aspect-build/bazel-lib/archive/refs/tags/v1.0.0.tar.gz",
)

load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies")

aspect_bazel_lib_dependencies()

Optional toolchains:

# Register the following toolchain to use jq

load("@aspect_bazel_lib//lib:repositories.bzl", "register_jq_toolchains")

register_jq_toolchains()

# Register the following toolchain to use yq

load("@aspect_bazel_lib//lib:repositories.bzl", "register_yq_toolchains")

register_yq_toolchains()

What's Changed

New Contributors

Full Changelog: v0.12.1...v1.0.0