bazelbuild / rules_cc

C++ Rules for Bazel
https://bazel.build
Apache License 2.0
181 stars 89 forks source link

Update dependency bazel_skylib to v1 - autoclosed #170

Closed renovate-bot closed 1 year ago

renovate-bot commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Type Update Change
bazel_skylib http_archive major 0.8.0 -> 1.3.0

Release Notes

bazelbuild/bazel-skylib ### [`v1.3.0`](https://togithub.com/bazelbuild/bazel-skylib/releases/tag/1.3.0) [Compare Source](https://togithub.com/bazelbuild/bazel-skylib/compare/1.2.1...1.3.0) Release 1.3.0 **New Features** - Added `dicts.omit` and `dicts.pick` ([#​304](https://togithub.com/bazelbuild/bazel-skylib/issues/304)) - Added `expand_template` rule ([#​330](https://togithub.com/bazelbuild/bazel-skylib/issues/330)) - Added `subpackages` module ([#​348](https://togithub.com/bazelbuild/bazel-skylib/issues/348)) - Added `copy_directory` rule ([#​366](https://togithub.com/bazelbuild/bazel-skylib/issues/366)) - Added `bzlmod` support ([#​385](https://togithub.com/bazelbuild/bazel-skylib/issues/385)) **Incompatible Changes** - `native_binary` and `native_test` now use symlinks instead of copying, if the OS supports it ([#​340](https://togithub.com/bazelbuild/bazel-skylib/issues/340)) - `native_binary` and `native_test` now build in target configuration instead of host configuration ([#​341](https://togithub.com/bazelbuild/bazel-skylib/issues/341)) - `copy_file` no longer adds non-executables to `default_runfiles` ([#​326](https://togithub.com/bazelbuild/bazel-skylib/issues/326)) **Contributors** Alex Eagle, Alexandre Rostovtsev, Barry McNamara, Derek Cormier, Fabian Meumertzheim, Geoffrey Martin-Noble, hchsiao, Kevin Kres, nickgooding, Vertexwahn, Vinh Tran **WORKSPACE setup** load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "bazel_skylib", urls = [ "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz", "https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz", ], sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506", ) load("@​bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") bazel_skylib_workspace() ### [`v1.2.1`](https://togithub.com/bazelbuild/bazel-skylib/releases/tag/1.2.1) [Compare Source](https://togithub.com/bazelbuild/bazel-skylib/compare/1.2.0...1.2.1) Release 1.2.1 *Note*: the 1.2.x releases of Skylib will be the last ones to support Bazel 4.2. Starting with release 1.3, Skylib will require Bazel 5 or newer. Bugfix release: fixes build failure with `--incompatible_disallow_empty_glob` ([#​359](https://togithub.com/bazelbuild/bazel-skylib/issues/359)) **Contributors** Alexandre Rostovtsev, Ivo List **WORKSPACE setup** ``` load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "bazel_skylib", urls = [ "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.2.1/bazel-skylib-1.2.1.tar.gz", "https://github.com/bazelbuild/bazel-skylib/releases/download/1.2.1/bazel-skylib-1.2.1.tar.gz", ], sha256 = "f7be3474d42aae265405a592bb7da8e171919d74c16f082a5457840f06054728", ) load("@​bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") bazel_skylib_workspace() ``` **Using the rules** See [the source](https://togithub.com/bazelbuild/bazel-skylib/tree/1.2.1). ### [`v1.2.0`](https://togithub.com/bazelbuild/bazel-skylib/releases/tag/1.2.0) [Compare Source](https://togithub.com/bazelbuild/bazel-skylib/compare/1.1.1...1.2.0) Release 1.2.0 *Note*: the 1.2.x releases of Skylib will be the last ones to support Bazel 4.2. Starting with release 1.3, Skylib will require Bazel 5 or newer. **New Features** - The unittest toolchain has better support for special characters in failure messages ([#​320](https://togithub.com/bazelbuild/bazel-skylib/issues/320)) - Use portable Bash shebangs for BSD compatibility ([#​329](https://togithub.com/bazelbuild/bazel-skylib/issues/329)) - Add loadingtest - tests which evaluate during the loading phase ([#​347](https://togithub.com/bazelbuild/bazel-skylib/issues/347)) - Add doc parameter to analysistest.make, allowing analysis tests to be documented in a Stardoc-friendly way ([#​343](https://togithub.com/bazelbuild/bazel-skylib/issues/343), [#​352](https://togithub.com/bazelbuild/bazel-skylib/issues/352)) **Contributors** Alexandre Rostovtsev, Geoffrey Martin-Noble, Kevin Kress, Samuel Freilich, UebelAndre, Yesudeep Mangalapilly **WORKSPACE setup** ``` load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "bazel_skylib", urls = [ "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.2.0/bazel-skylib-1.2.0.tar.gz", "https://github.com/bazelbuild/bazel-skylib/releases/download/1.2.0/bazel-skylib-1.2.0.tar.gz", ], sha256 = "af87959afe497dc8dfd4c6cb66e1279cb98ccc84284619ebfec27d9c09a903de", ) load("@​bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") bazel_skylib_workspace() ``` **Using the rules** See [the source](https://togithub.com/bazelbuild/bazel-skylib/tree/1.2.0). ### [`v1.1.1`](https://togithub.com/bazelbuild/bazel-skylib/releases/tag/1.1.1): (initially tagged as 1.1.0) [Compare Source](https://togithub.com/bazelbuild/bazel-skylib/compare/1.1.0...1.1.1) Release 1.1.1 (initially tagged as 1.1.0) **New Features** - Gazelle: support relative imports ([#​271](https://togithub.com/bazelbuild/bazel-skylib/issues/271)) and imports from `@bazel_tools` ([#​273](https://togithub.com/bazelbuild/bazel-skylib/issues/273)) - Add partial.is_instance() ([#​276](https://togithub.com/bazelbuild/bazel-skylib/issues/276)) - Allow unittest.suite() to accept partial calls of test rules ([#​276](https://togithub.com/bazelbuild/bazel-skylib/issues/276)) - Allow specifying additional aspects to target under test in analysistest.make() ([#​299](https://togithub.com/bazelbuild/bazel-skylib/issues/299)) - Add Windows support for build_test ([#​302](https://togithub.com/bazelbuild/bazel-skylib/issues/302)) **Incompatible Changes** - structs.to_dict() ignores deprecated to_json()/to_proto() methods ([#​295](https://togithub.com/bazelbuild/bazel-skylib/issues/295)) **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 **WORKSPACE setup** ``` load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "bazel_skylib", urls = [ "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.1.1/bazel-skylib-1.1.1.tar.gz", "https://github.com/bazelbuild/bazel-skylib/releases/download/1.1.1/bazel-skylib-1.1.1.tar.gz", ], sha256 = "c6966ec828da198c5d9adbaa94c05e3a1c7f21bd012a0b29ba8ddbccb2c93b0d", ) load("@​bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") bazel_skylib_workspace() ``` **Using the rules** See [the source](https://togithub.com/bazelbuild/bazel-skylib/tree/1.1.1). ### [`v1.1.0`](https://togithub.com/bazelbuild/bazel-skylib/compare/1.0.3...1.1.0) [Compare Source](https://togithub.com/bazelbuild/bazel-skylib/compare/1.0.3...1.1.0) ### [`v1.0.3`](https://togithub.com/bazelbuild/bazel-skylib/releases/tag/1.0.3) [Compare Source](https://togithub.com/bazelbuild/bazel-skylib/compare/1.0.2...1.0.3) **New Features** - copy_file: Add parameter to allow symlinks ([#​252](https://togithub.com/bazelbuild/bazel-skylib/issues/252)) - Create Gazelle language for Starlark ([#​251](https://togithub.com/bazelbuild/bazel-skylib/issues/251)) - Create a helper rule (`select_file`) for selecting a file from outputs of another rule ([#​233](https://togithub.com/bazelbuild/bazel-skylib/issues/233)) **Significant Changes** - Move Gazelle extension to //gazelle/bzl and change package name - Stop depending on rules_pkg through the federation. ([#​259](https://togithub.com/bazelbuild/bazel-skylib/issues/259)) **Incompatible Changes** - Remove links to maprules ([#​213](https://togithub.com/bazelbuild/bazel-skylib/issues/213)) - Remove old_sets.bzl ([#​231](https://togithub.com/bazelbuild/bazel-skylib/issues/231)) It has been deprecated for a while, the code is not really compatible with Bazel depset-related 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, and the Bazel team. **WORKSPACE setup** ``` load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "bazel_skylib", urls = [ "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz", "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz", ], sha256 = "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c", ) load("@​bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") bazel_skylib_workspace() ``` **Using the rules** See [the source](https://togithub.com/bazelbuild/bazel-skylib/tree/1.0.3). ### [`v1.0.2`](https://togithub.com/bazelbuild/bazel-skylib/releases/tag/1.0.2) [Compare Source](https://togithub.com/bazelbuild/bazel-skylib/compare/1.0.1...1.0.2) **New Features** - Added types.is_set() to test whether an arbitrary object is a set as defined by sets.bzl. **Incompatible Changes** - @​bazel_skylib//:lib.bzl is removed. You now must specify specific modules via @​bazel_skylib//lib:.bzl. - maprule.bzl is removed. Added types.is_set() to test whether an arbitrary object is a set as defined by sets.bzl. **WORKSPACE setup** load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "bazel_skylib", urls = [ "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz", "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz", ], sha256 = "97e70364e9249702246c0e9444bccdc4b847bed1eb03c5a3ece4f83dfe6abc44", ) load("@​bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") bazel_skylib_workspace() **Using the rules** See [the source](https://togithub.com/bazelbuild/bazel-skylib/tree/master). ### [`v1.0.1`](https://togithub.com/bazelbuild/bazel-skylib/releases/tag/1.0.1) [Compare Source](https://togithub.com/bazelbuild/bazel-skylib/compare/1.0.0...1.0.1) **New Features** Patch release to 1.0.0 to provide toolchain for unittest library. **WORKSPACE setup** load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "bazel_skylib", url = "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.1/bazel-skylib-1.0.1.tar.gz", sha256 = "f1c8360c01fcf276778d3519394805dc2a71a64274a3a0908bc9edff7b5aebc8", ) load("@​bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") bazel_skylib_workspace() **Using the rules** See [the source](https://togithub.com/bazelbuild/bazel-skylib/tree/master). ### [`v1.0.0`](https://togithub.com/bazelbuild/bazel-skylib/releases/tag/1.0.0) [Compare Source](https://togithub.com/bazelbuild/bazel-skylib/compare/0.9.0...1.0.0) **WARNING - unittests do not work. Wait for 1.0.1** **Incompatible Changes** - @​bazel_skylib//:lib.bzl is removed. You now must specify specific modules via @​bazel_skylib//lib:.bzl. - maprule.bzl is removed. **New Features** - Added types.is_set() to test whether an arbitrary object is a set as defined by sets.bzl. **WORKSPACE setup** load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "bazel_skylib", url = "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.0/bazel-skylib-1.0.0.tar.gz", sha256 = "e72747100a8b6002992cc0bf678f6279e71a3fd4a88cab3371ace6c73432be30", ) load("@​bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") bazel_skylib_workspace() **Using the rules** See [the source](https://togithub.com/bazelbuild/bazel-skylib/tree/master). ### [`v0.9.0`](https://togithub.com/bazelbuild/bazel-skylib/releases/tag/0.9.0) [Compare Source](https://togithub.com/bazelbuild/bazel-skylib/compare/0.8.0...0.9.0) **Incompatible Changes** - Make sets.bzl point to new_sets.bzl instead of old_sets.bzl new_sets.bzl and old_sets.bzl should be removed in a following skylib release. **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/master/designs/2018-11-09-config-setting-chaining.md. - run_binary: runs an executable as an action - This rule is an alternative for genrule(): it canrun a binary with the desired arguments, environment, inputs, and outputs, as a single build action, without shelling out to Bash. - Fixes [https://github.com/bazelbuild/bazel-skylib/issues/149](https://togithub.com/bazelbuild/bazel-skylib/issues/149) - New `native_binary()` and `native_test()` rules let you wrap a pre-built binary in a binary and test rule respectively. - native_binary() wraps a pre-built binary or script in a \*\_binary rule interface. Rules like genrule can tool-depend on it, and it can be executed with "bazel run". This rule can also augment the binary with runfiles. - native_test() is similar, but creates a testable rule instead of a binary rule. - Fixes [https://github.com/bazelbuild/bazel-skylib/issues/148](https://togithub.com/bazelbuild/bazel-skylib/issues/148) - 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'. - See [https://github.com/bazelbuild/bazel/issues/5508](https://togithub.com/bazelbuild/bazel/issues/5508), [https://github.com/bazelbuild/bazel/issues/4319](https://togithub.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** **WORKSPACE setup** load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@​bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") maybe( http_archive, name = "bazel_skylib", url = "https://github.com/bazelbuild/bazel-skylib/releases/download/0.9.0/bazel_skylib-0.9.0.tar.gz", sha256 = "1dde365491125a3db70731e25658dfdd3bc5dbdfd11b840b3e987ecf043c7ca0", ) load("@​bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") bazel_skylib_workspace()

Configuration

šŸ“… Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

šŸš¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.

ā™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

šŸ”• Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.