bazel-lib/lib
geonik-code 9b3db9e7d6
Add support for select in write_source_file.bzl
Add additional argument to write_source_file macro: `out_file_is_select = False`, that enables support for defining select dictionary as out_file. For example:
`
write_source_file(
    name = "write_foo_c",
    in_file = ":foo.c",
    out_file = {
        "//conditions:default": "//workspace/subdir:foo.c",
    },
    executable = False,
    additional_update_targets = [],
    suggested_update_target = ":write_foo_h",
    diff_test = True,
    check_that_out_file_exists = False,
    out_file_is_select = True,
)
`
2024-03-07 12:14:28 +01:00
..
private Add support for select in write_source_file.bzl 2024-03-07 12:14:28 +01:00
tests feat: support location expansion in tar (#774) 2024-03-01 14:51:47 -08:00
BUILD.bazel feat: support location expansion in tar (#774) 2024-03-01 14:51:47 -08:00
base64.bzl feat: add base64 encode & decode utility functions (#292) 2022-11-25 17:00:02 -08:00
bats.bzl docs: add bats docs 2024-02-26 15:55:48 -08:00
bazelrc_presets.bzl fix: move flags that should only be set with bazel 6 to bazel6.bazelrc recommended settings (#711) 2024-01-04 08:16:59 -08:00
copy_directory.bzl Revert: feat: expose a config_setting for copy execution_requirements (#606) (#640) 2023-10-31 15:19:38 -07:00
copy_file.bzl feat: expose toolchains used for copy actions (#661) 2023-11-16 07:15:50 -08:00
copy_to_bin.bzl feat: expose toolchains used for copy actions (#661) 2023-11-16 07:15:50 -08:00
copy_to_directory.bzl Revert: feat: expose a config_setting for copy execution_requirements (#606) (#640) 2023-10-31 15:19:38 -07:00
diff_test.bzl feat: add executable attribute to write_source_files 2022-12-03 10:46:08 -08:00
directory_path.bzl Add DefaultOutputPathInfo provider and update write_source_files to accept it (#48) 2022-03-14 17:33:52 -07:00
docs.bzl feat: add doc helpers (#2) 2021-11-10 06:34:00 -08:00
expand_make_vars.bzl chore: remove expand_template re-export (#580) 2023-10-05 12:33:13 -07:00
expand_template.bzl feat: expand_template allows inline template content (#533) 2023-09-20 18:32:05 -07:00
extensions.bzl feat: implement bats test runner (#699) 2023-12-20 13:08:47 -08:00
glob_match.bzl chore: turn on more basic precommit checks 2023-02-17 11:00:00 -08:00
host_repo.bzl feat: add @aspect_bazel_lib_host repository and normalize function names in repo_utils (#90) 2022-04-28 14:18:06 -07:00
jq.bzl jq: add data file and location expansion support (#757) 2024-02-26 17:43:56 -08:00
lists.bzl feat(list): add `unique` function (#716) 2024-02-27 08:25:00 -08:00
output_files.bzl feat: replace default_info_files with output_files which adds output_group attribute (#50) 2022-03-15 17:36:22 -07:00
params_file.bzl fix: formatting for new docsite (#302) 2022-12-28 08:03:18 -08:00
paths.bzl Update paths.bzl (#735) 2024-01-27 12:26:12 -08:00
platform_utils.bzl fix: don't generate @aspect_bazel_lib_local_config_platform repository as it is a leaky abstraction for rule consumers and not just rule authors (#243) 2022-09-13 21:58:08 -07:00
repo_utils.bzl chore: update pre-commit buildifier (#563) 2023-09-29 14:42:33 -07:00
repositories.bzl chore(deps): update dependency bazel_skylib to v1.5.0 2024-01-30 00:18:44 -08:00
run_binary.bzl feat: add run_binary with output directory support & improved makevar expansion (#57) 2022-03-31 20:04:35 -07:00
stamping.bzl Update stamping.bzl 2023-04-18 13:27:19 -07:00
strings.bzl chore: run buildifier 2023-06-13 16:28:17 -07:00
tar.bzl feat: support location expansion in tar (#774) 2024-03-01 14:51:47 -08:00
testing.bzl chore: add windows binaries (#610) 2023-10-10 14:13:17 -07:00
transitions.bzl Add platform_transition_binary rule (#289) 2022-12-14 11:21:08 -08:00
utils.bzl feat: add is_bazel_7_or_greater utility (#714) 2024-01-07 16:42:57 -08:00
windows_utils.bzl refactor: remove to_workspace_path and to_manifest_path (#590) 2023-10-06 08:37:53 -07:00
write_source_files.bzl FR-723: make WriteSourceFileInfo public (#724) 2024-01-22 21:51:05 -08:00
yq.bzl refactor: rework toolchain registration for WORKSPACE and bzlmod users (#597) 2023-10-10 12:16:13 -07:00