Commit Graph

  • 5046fb0577 * Updating `bzl/expansion.bzl`. * Renaming all `expand_with_*` functions to `expand_dict_strings_with_*`. * Explicit that it acts on a dict of strings. * Adding `expand_list_strings_with_manual_dict` and `expand_list_strings_with_manual_dict_and_location` functions. * Similar to the existing `expand_dict_strings_with_manual_dict*` functions, these expand values but from a list of strings instead of dict of strings. * Note that these methods only perform recursion via the "manual dict" (the input datatype, `list`, is not an associative type). * Simpler API for just expanding a few string values (of any attr type, or not necessarily associated with any attr). * Renaming `expand_location` parameter(s) to `wrapped_expand_location`. * This makes it more clear that this is not `ctx.expand_location` directly, but rather a wrapped version of that function. * Adding `wrap_expand_location` method. * Offers a helper function for creating `wrapped_expand_location` (used by many expansion functions) from a given `ctx` and `deps`. * Updating doc string comments. * Updating `tests/bzl/expansion_tests.bzl`. * Renaming all `expand_with_*` tests to `expand_dict_strings_with_*`. * Adding `expand_list_strings_with_*` tests (for new functions). * Adding "no recursion" "expected resolved" dicts for new tests. * Adding `TOOLCHAIN_INDIRECT_ENV_VAR*` values to expand, which show recursion specifically among only toolchain values. Cauhx Milloy 2024-06-30 12:41:03 -0700
  • 601b76741c fix: linux Chris Brown 2024-06-29 04:34:45 -0400
  • 63c2bc4c56 fix: substitution Chris Brown 2024-06-29 04:26:34 -0400
  • d909db419f simpler API for ignore line endings Chris Brown 2024-06-29 04:00:05 -0400
  • 88173c956e all tests enabled on windows Chris Brown 2024-06-29 03:59:22 -0400
  • 6b7d66e8d1 fix bug in copy_directory Chris Brown 2024-06-28 20:05:47 -0400
  • ab187cd5bf update docs Chris Brown 2024-06-28 20:05:35 -0400
  • 64b9e2f758 symlinks on by default on windows Chris Brown 2024-06-28 20:05:27 -0400
  • 374f04c259 use toolchain for msys path Chris Brown 2024-06-28 19:32:13 -0400
  • ed33b44683 feat: extend api for stable diff_test on windows Chris Brown 2024-06-28 19:15:55 -0400
  • 1ca13a4b1e Remove unneeded code Paolo Tranquilli 2024-06-26 08:58:53 +0200
  • b8adf7f6af Fix formatting Paolo Tranquilli 2024-06-26 08:56:32 +0200
  • b9cc025569 Remove unneeded backward compatibility code Paolo Tranquilli 2024-06-26 08:51:10 +0200
  • d5ae39f077
    Add support for data in expand_template Keith Smiley 2024-06-24 11:13:39 -0700
  • a7c141564d Fix `--noenable_bzlmod` checks Paolo Tranquilli 2024-06-13 09:30:49 +0200
  • 798c1a78f8 Update docs Paolo Tranquilli 2024-06-13 09:23:29 +0200
  • f86cde0dbf Add location expansion to `env` Paolo Tranquilli 2024-06-13 09:18:50 +0200
  • 02c2708add Update `MODULE.bazle-remove-override.patch` Paolo Tranquilli 2024-06-13 08:40:59 +0200
  • f05da8292b Update `bazel_features` Paolo Tranquilli 2024-06-13 08:39:28 +0200
  • c23d4096f9 Merge branch 'main' into env-native-binary-using-features Paolo Tranquilli 2024-06-13 08:33:07 +0200
  • acc62cc1a1
    Merge branch 'main' into select-by-extension Mike Kelly 2024-06-12 22:15:16 -0700
  • 62bac18637 Replace Bazel Skylib implementation of unittest.bzl with an alias to the version in rules_testing. Susan Steinman 2024-06-10 15:29:37 -0400
  • 0d22ba79a6 Replace Bazel Skylib implementation of unittest.bzl with an alias to the version in rules_testing. Susan Steinman 2024-06-10 15:29:37 -0400
  • e10ac64e63
    Update partial_tests.bzl susinmotion 2024-06-11 14:28:16 -0400
  • 7db9633978
    Update BUILD susinmotion 2024-06-11 14:26:00 -0400
  • 8429c29450
    Update BUILD susinmotion 2024-06-11 14:24:05 -0400
  • 55317c70bf Replace Bazel Skylib implementation of unittest.bzl with an alias to the version in rules_testing. Susan Steinman 2024-06-10 15:29:37 -0400
  • b2ad24a7a1 more lint Tony Aiuto 2024-06-05 23:26:34 -0400
  • 51309d138b linty Tony Aiuto 2024-06-05 23:23:37 -0400
  • 9875fcb949 linty Tony Aiuto 2024-06-05 20:32:13 -0400
  • f7d62de255 cdate Tony Aiuto 2024-06-05 20:22:50 -0400
  • 3ae5e3a79d Wrap bzl_library in a macro so that we can force off some global attribures that are never appropriate for BUILD files. Tony Aiuto 2024-06-05 17:21:01 -0400
  • 27d429d8d0
    Bump version to 1.7.1 (#521) 1.7.1 Ivo List 2024-06-03 15:22:42 +0200
  • d0819b9e37 Bump version to 1.7.1 Ivo List 2024-06-03 14:51:45 +0200
  • 1e594dc4a6
    Fix distribution tarballs to include directory rules. (#520) Matt 2024-06-03 18:03:48 +1000
  • 5dabe13ddd Fix distribution tarballs to include directory rules. Matt Stark 2024-05-31 14:33:42 +1000
  • 115ee49c2c
    Merge branch 'bazelbuild:main' into select-by-extension Mike Kelly 2024-05-31 20:31:58 -0700
  • ab604c1cd8
    Add bcr setup for gazelle (#519) Ivo List 2024-05-31 11:45:14 +0200
  • 19e89dcc0a Add bcr setup for gazelle Ivo List 2024-05-31 11:17:10 +0200
  • 2395011a0d
    Add Publish to BCR setup (#518) 1.7.0 Ivo List 2024-05-31 10:30:10 +0200
  • 77263df89d Add maintainers Ivo List 2024-05-31 10:27:37 +0200
  • 5319cb6634 Update maintainers guide Ivo List 2024-05-31 10:16:42 +0200
  • 84709845c2 Add Publish to BCR setup Ivo List 2024-05-31 10:16:33 +0200
  • 12f1a046c6
    Update Changelog and bump version to 1.7.0 (#517) Ivo List 2024-05-31 10:04:57 +0200
  • 5f6a49ac33
    Merge branch 'main' into version-1.6.2 Ivo List 2024-05-31 10:01:56 +0200
  • cf5550b841 Bump to 1.7.0 Ivo List 2024-05-31 09:51:50 +0200
  • 7777ef1e6b Fix changelog Ivo List 2024-05-31 09:44:56 +0200
  • 0cb1425916 Bump version to 1.6.2 Ivo List 2024-05-31 09:43:05 +0200
  • f417c4c0e4 Update changelog for 1.6.2 Ivo List 2024-05-31 09:42:50 +0200
  • 28d6034185
    fix: Fix a bug in globs when middle is non-empty, but right is empty. (#516) Matt 2024-05-31 17:30:03 +1000
  • d5fd0f5a47 fix: Fix a bug in globs when middle is non-empty, but right is empty. Matt Stark 2024-05-31 13:39:20 +1000
  • 9b26156bbb
    fix: Ensure directories work when the package is empty (#515) Matt 2024-05-31 17:26:49 +1000
  • c51f337634 fix: Ensure directories work when the package is empty Matt Stark 2024-05-31 13:39:20 +1000
  • 0e485c80b7
    Add is_normalized and starts_with to paths module (#514) Ivo List 2024-05-29 15:40:38 +0200
  • c761ef381b Update docs Ivo List 2024-05-29 15:15:10 +0200
  • 806efa6993 Add is_normalized and starts_with to paths module. Ivo List 2024-05-29 10:12:14 +0200
  • f351bedd9a
    Remove empty file that was accidentally not deleted. (#513) Matt 2024-05-29 16:28:31 +1000
  • 42ca403c2d Remove empty file that was accidentally not deleted. Matt Stark 2024-05-29 15:54:23 +1000
  • 4d37916e68
    Minor cleanup of directory rules. (#512) Matt 2024-05-29 16:09:09 +1000
  • 078d929d03 Minor cleanup of directory rules. Matt Stark 2024-05-29 15:54:23 +1000
  • f3c0026ec6
    Copy rules_directory's globs to bazel-skylib. (#511) Matt 2024-05-29 15:29:32 +1000
  • 7f8b43e007 Copy rules_directory's globs to bazel-skylib. Matt Stark 2024-05-10 09:49:51 +1000
  • a464f69faa
    Copy rules_directory to bazel-skylib. (#510) Matt 2024-05-29 15:24:27 +1000
  • 20db50fa7f Copy rules_directory to bazel-skylib. Matt Stark 2024-05-10 09:49:51 +1000
  • 4606b48428
    Merge branch 'bazelbuild:main' into select-by-extension Mike Kelly 2024-05-15 11:34:48 -0700
  • b459822483
    Add MODULE.bazel.lock to gitignore. (#509) Matt 2024-05-16 02:28:42 +1000
  • e5d911255b * Downgrading usage of `dict | dict` to use `dict(dict, **dict)` to be backwards compatible with Bazel 5.x. * `dict(dict).update(dict)` is not a good replacement as it returns `NoneType`. Cauhx Milloy 2024-05-11 18:16:08 -0700
  • 826b30c1b4 * Fixing formatting. Cauhx Milloy 2024-05-11 17:55:39 -0700
  • aa133b9777 * Revering previous commit. Cauhx Milloy 2024-05-11 17:11:27 -0700
  • a2ff961bfe * Downgrading usage of `dict | dict` in `tests/expansion_tests.bzl` to use `dict(dict).update(dict)` to be backwards compatible with Bazel 5.x. Cauhx Milloy 2024-05-11 16:46:36 -0700
  • 7e24e95d8d * Applying update to all impl functions. Cauhx Milloy 2024-05-11 16:30:49 -0700
  • 4fd038818c * Updating expected rlocation value to work with different versions of bazel used in testing. Cauhx Milloy 2024-05-11 16:21:54 -0700
  • f0cbec4fd8 * Updating expected rlocation path for changes from merged-in master. Cauhx Milloy 2024-05-11 15:05:42 -0700
  • a23dbc4edc Merge remote-tracking branch 'remotes/original_origin/main' into addingExpansionBzl Cauhx Milloy 2024-05-11 13:05:21 -0700
  • 38463b0ed2 Add MODULE.bazel.lock to gitignore. Matt Stark 2024-05-10 08:46:35 +1000
  • d9f25950b3
    Fixup doc strings Michael Kelly 2024-05-06 15:10:00 -0700
  • da415af535
    Fixing buildifier complaint Michael Kelly 2024-05-06 14:06:49 -0700
  • b49f49f078
    Updating docs Michael Kelly 2024-05-06 14:05:10 -0700
  • 9cce149a5e
    Fix lint errors Michael Kelly 2024-05-06 14:01:04 -0700
  • 4b5297fd18
    Allow for multiple extensions to be specified for match Michael Kelly 2024-05-06 13:58:08 -0700
  • a724deef4f
    Add extra bits associated with new rule Michael Kelly 2024-05-03 23:16:54 -0700
  • e9aff9cd9b Add rule for selecting files by extension Michael Kelly 2024-05-03 22:16:59 -0700
  • 0d43695bd5
    Re-add `licenses()` - internal license checker still requires it :/ (#506) Alexandre Rostovtsev 2024-05-02 14:38:05 -0400
  • 2d793616c3 Re-add `licenses()` - internal license checker still requires it :/ Alexandre Rostovtsev 2024-05-01 17:58:41 -0400
  • a16ebb4dca
    Add `default_applicable_license` and remove obsolete `licenses()` in all BUILD files (#504) Alexandre Rostovtsev 2024-05-01 17:24:18 -0400
  • 62790d17a9 Run buildifier Alexandre Rostovtsev 2024-05-01 14:34:06 -0400
  • ebbe67c0dd Remove obsolete `licenses(["notice"])` Alexandre Rostovtsev 2024-05-01 14:31:17 -0400
  • e6eb92cbe9
    Merge branch 'main' into licence Alexandre Rostovtsev 2024-04-30 17:20:12 -0400
  • 16bf90d4ae
    Support modern location expansions for run_binary (#490) UebelAndre 2024-04-30 14:19:34 -0700
  • e0e011835d Mention both `$(execpath ...)` and legacy `$(location ...)` in docs and comments Alexandre Rostovtsev 2024-04-30 17:10:47 -0400
  • 891ddd31a7 Add a test to verify values of form `$(foo ...)` do not get expanded Alexandre Rostovtsev 2024-04-30 17:09:43 -0400
  • fe1e99e499 Fix misleading comment Alexandre Rostovtsev 2024-04-30 16:37:59 -0400
  • 3a917ca9d3
    Merge branch 'main' into location UebelAndre 2024-04-30 07:33:09 -0700
  • 766ce49a6f Run buildifier Alexandre Rostovtsev 2024-04-25 18:36:19 -0400
  • 93e3c4d268
    Merge branch 'main' into licence Alexandre Rostovtsev 2024-04-25 18:35:25 -0400
  • 8583cd2b37 Missed some BUILD files Alexandre Rostovtsev 2024-04-25 18:34:49 -0400
  • 2b546aff9e
    Add missing comma (#505) Philipp Stephani 2024-04-26 00:06:33 +0200
  • 772925dea0 Add missing comma Philipp Stephani 2024-04-26 00:03:41 +0200
  • 2e8613f875 Set default_appliccable_licenses in all packages Alexandre Rostovtsev 2024-04-25 17:56:38 -0400
  • 3781a19863 Add missing `licenses()` to tests/bzl_library/BUILD Alexandre Rostovtsev 2024-04-25 17:23:56 -0400