What's Changed
Full Changelog: https://github.com/bazelbuild/bazel-skylib/compare/1.7.0...1.7.1
New features
directory
rules by @matts1 in https://github.com/bazelbuild/bazel-skylib/pull/510is_normalized
and starts_with
to paths module by @comius in https://github.com/bazelbuild/bazel-skylib/pull/514New Contributors
Full Changelog: https://github.com/bazelbuild/bazel-skylib/compare/1.6.1...1.7.0
What's Changed
modules
Bazel 6 compatibility by @phst in https://github.com/bazelbuild/bazel-skylib/pull/499New Contributors
Full Changelog: https://github.com/bazelbuild/bazel-skylib/compare/1.6.0...1.6.1
What's Changed
modules
by @fmeum in https://github.com/bazelbuild/bazel-skylib/pull/457out
on native_binary
optional by @tpudlik in https://github.com/bazelbuild/bazel-skylib/pull/474bzl_library
to depend on non-bzl_library
targets by @Wyverald in https://github.com/bazelbuild/bazel-skylib/pull/495New Contributors
Full Changelog: https://github.com/bazelbuild/bazel-skylib/compare/1.5.0...1.6.0
What's Changed
toolchain
param by @kotlaja in https://github.com/bazelbuild/bazel-skylib/pull/455bzl_library
by @keith in https://github.com/bazelbuild/bazel-skylib/pull/457doc
param to unittest.make
by @UebelAndre in https://github.com/bazelbuild/bazel-skylib/pull/464New Contributors
Full Changelog: https://github.com/bazelbuild/bazel-skylib/compare/1.4.2...1.5.0
Bugfix release: fixes build_test
to respect target_compatible_with
(#448)
New Features
bzl_library
allows .scl
files (new Starlark dialect loadable by Bazel at HEAD with --experimental_enable_scl_dialect
)Contributors Alexandre Rostovtsev, UebelAndre, Vertexwahn, Xavier Bonaventura
Bugfix release: fixes gazelle plugin failure with --incompatible_disallow_empty_glob
(#431) and (for released versions) with --incompatible_disable_starlark_host_transitions
(#433).
Contributors Alexandre Rostovtsev, Chuck Grindel
New Features
Other Notable Changes
Contributors Alexandre Rostovtsev, Nick Gooding, Simon Stewart, Xùdōng Yáng
New Features
dicts.omit
and dicts.pick
(#304)expand_template
rule (#330)subpackages
module (#348)copy_directory
rule (#366)bzlmod
support (#385)Incompatible Changes
native_binary
and native_test
now use symlinks instead of copying, if the OS supports it (#340)native_binary
and native_test
now build in target configuration instead of host configuration (#341)copy_file
no longer adds non-executables to default_runfiles
(#326)Contributors
Alex Eagle, Alexandre Rostovtsev, Barry McNamara, Derek Cormier, Fabian Meumertzheim, Geoffrey Martin-Noble, hchsiao, Kevin Kres, nickgooding, Vertexwahn, Vinh Tran
Bugfix release: fixes build failure with --incompatible_disallow_empty_glob (#359)
Contributors
Alexandre Rostovtsev, Ivo List
Release 1.2.0
New Features
Contributors
Alexandre Rostovtsev, Geoffrey Martin-Noble, Kevin Kress, Samuel Freilich, UebelAndre, Yesudeep Mangalapilly
New Features
@bazel_tools
(#273)Incompatible Changes
Contributors
aiuto, alandonovan, Alex Eagle, Alexandre Rostovtsev, Andrew Z Allen, c-parsons, Christopher Sauer, Daniel Wagner-Hall, David Sanderson, dmaclach, Laurent Le Brun, Mansur, Olek Wojnar, Philipp Wollermann, River, Samuel Giddins, Thaler Benedek
Significant Changes
select_file
) for selecting a file from outputs of another rule (#233)Incompatible Changes
Contributors Andrew Z Allen, Bocete, Bor Kae Hwang, irengrig, Jay Conrod, Jonathan B Coe, Marc Plano-Lesay, Robbert van Ginkel, Thomas Van Lenten, Yannic
Incompatible Changes
New Features
New Features
common_settings.bzl: Standard data types for user defined build configuration. Common scalar build settings for rules to use so they don't recreate them locally. This fulfills part of the SBC design doc: https://docs.google.com/document/d/1vc8v-kXjvgZOdQdnxPTaV0rrLxtP2XwnD2tAZlYJOqw/edit#bookmark=id.iiumwic0jphr
selects.bzl: Add config_setting_group for config_setting AND/OR-chaining Implements https://github.com/bazelbuild/proposals/blob/HEAD/designs/2018-11-09-config-setting-chaining.md.
Make sets.bzl point to new_sets.bzl instead of old_sets.bzl. new_sets.bzl and old_sets.bzl should be removed in the following skylib release.
run_binary: runs an executable as an action
New native_binary()
and native_test()
rules let you wrap a pre-built binary in a binary and test rule respectively.
diff_test: test rule compares two files and passes if the files match.
On Linux/macOS/non-Windows, the test compares files using ‘diff’.
On Windows, the test compares files using ‘fc.exe’. This utility is available on all Windows versions I tried (Windows 2008 Server, Windows 2016 Datacenter Core).
See https://github.com/bazelbuild/bazel/issues/5508, https://github.com/bazelbuild/bazel/issues/4319
maprule: move functionality to maprule_util.bzl. maprule_util.bzl will benefit planned new rules (namely a genrule alternative).
This release is tested with Bazel 0.28