Mike Lundy
dfcffca8f5
jq: add data file and location expansion support ( #757 )
...
This teaches the jq rule about a `data` attribute and adds conditional
support to do bazel location expansion. The expansion is disabled by
default because it likely would cause compat concerns (since jq can take
arbitrary text as input args).
2024-02-26 17:43:56 -08:00
Greg Magolan
516a5fe725
feat: add is_bazel_7_or_greater utility ( #714 )
2024-01-07 16:42:57 -08:00
Greg Magolan
5aaa785b96
chore: test against bazel 7.0.0 ( #713 )
2024-01-07 16:12:05 -08:00
Sahin Yort
33bc4443fd
fix: create windows launcher for bats ( #704 )
2023-12-21 14:27:21 -08:00
Sahin Yort
4f6b4bd5cb
feat: implement bats test runner ( #699 )
2023-12-20 13:08:47 -08:00
Alex Eagle
eda4929c72
chore: add windows binaries ( #610 )
...
* chore: add windows binaries
* chore: fix/exclude windows brokenness
* chore: try to see why diff tests fail on windows
* fix: rm bazelisk rc again for windows
* fix: try our own diff_test
* chore: use only our own diff_test
2023-10-10 14:13:17 -07:00
Alex Eagle
472bf9b122
feat: tar includes runfiles ( #595 )
...
* feat: tar includes runfiles
* chore: try to fix red circleci
* fix: tracked down problem
* chore: document tar#srcs supports runfiles
* chore: add comment about logic for trimming manifest suffix
* chore: missed a replacement spot
* chore: give up on the listing test for now
2023-10-09 15:57:52 -07:00
Alex Eagle
6a4381bf07
chore: run gazelle ( #584 )
...
Also delete the local_config_platform workaround for bazel 5 which made our docs setup complex
2023-10-05 14:22:38 -07:00
Malte Poll
d79f4d4867
feat: yq supports stamping
...
Fixes #223
2023-06-15 16:50:26 -07:00
Greg Magolan
6f37a3808b
fix: isolate bzl_libary targets for //lib/private:*.bzl i //lib/private/docs package so that platform_utils dep on @local_config_platform//:constraints doesn't leak unless downstream consumer is generating docs ( #254 )
2022-09-27 09:59:19 -07:00
Greg Magolan
65e852f774
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
Greg Magolan
be5c9d06bc
fix: fix bzl_library breakage created with load from @local_config_platform in copy rules ( #242 )
2022-09-13 20:37:24 -07:00
Greg Magolan
bbfb74c8e6
fix: fix host platform detection on all copy actions which always run locally ( #241 )
2022-09-12 20:45:48 -07:00
David Zbarsky
5edb10a0d8
Cleanup diff_test and copy_file implementations
2022-08-31 12:12:47 -07:00
Alex Eagle
f688d17cfb
feat: jq supports stamping
...
Fixes #223
2022-08-22 12:39:54 -07:00
Alex Eagle
896ee0c1f0
chore: set test timeouts to short
...
I recently enabled --test_verbose_timeout_warnings and that caused a bunch of warnings in our build.
This fixes it, and adds a utility for us or others to make test-wrapping macros that set to short by default.
2022-08-20 13:58:43 -07:00
Greg Magolan
c867e37856
fix: fix make var expansion in expand_template ( #213 )
2022-08-11 19:30:45 -07:00
Alex Eagle
20d759f669
feat: add utility for asserting that a file contains a string
...
Useful for basic smoke tests of bazel outputs
2022-08-04 18:02:29 -07:00
Greg Magolan
85e8b7e555
feat: add glob support to copy_to_directory include_srcs_patterns, exclude_srcs_patterns, replace_prefixes and root_paths. ( #196 )
...
This deprecates exclude_prefixes with docs suggesting to using exclude_srcs_patterns instead
2022-07-28 12:50:41 -07:00
Greg Magolan
a945d66eb5
chore: add glob_match to docs ( #195 )
2022-07-28 11:15:14 -07:00
Alex Eagle
de081fb72e
feat: basic stamping support
2022-07-14 22:37:42 -07:00
Greg Magolan
14f83ab4e8
feat: add out_dirs to run_binary rule and deprecate output_dir ( #160 )
2022-06-16 16:26:29 -07:00
Derek Cormier
2b50f99ab3
refactor: show a more helpful error message in copy_to_bin
2022-05-03 15:46:57 -07:00
Greg Magolan
67e1072e25
chore: use aspect_bazel_lib diff_test ( #94 )
2022-04-29 00:36:41 -07:00
Greg Magolan
41ce34470f
feat: add @aspect_bazel_lib_host repository and normalize function names in repo_utils ( #90 )
2022-04-28 14:18:06 -07:00
Derek Cormier
3e4024c785
feat: yq ( #80 )
2022-04-19 21:45:06 -07:00
Greg Magolan
d59ca6092f
fix: improve execution requirements of all copy files/directory rules for better perf ( #79 )
2022-04-14 10:48:44 -07:00
Greg Magolan
b2955dcb05
feat: add copy_to_bin rule ( #69 )
2022-04-12 16:31:04 -07:00
Greg Magolan
322bbc92df
feat: add repo_utils with fork of @bazel_tools patch function that takes a working_directory argument
2022-04-11 18:15:32 -07:00
Derek Cormier
a23d1b03f7
feat: add copy_directory ( #63 )
2022-04-03 17:52:03 -07:00
Greg Magolan
e30e89fa3d
feat: add run_binary with output directory support & improved makevar expansion ( #57 )
2022-03-31 20:04:35 -07:00
Greg Magolan
bda5c632be
feat: replace default_info_files with output_files which adds output_group attribute ( #50 )
2022-03-15 17:36:22 -07:00
Greg Magolan
3b93ee0baa
Add DefaultOutputPathInfo provider and update write_source_files to accept it ( #48 )
...
Also update write_source_files to accept DirectoryPathInfo
2022-03-14 17:33:52 -07:00
Derek Cormier
7f2641cd07
reimplement stardoc_with_diff_test to use write_source_files
2022-03-11 09:50:55 -08:00
Greg Magolan
0fd56dc59d
feat: add directory_path rule and DirectoryPathInfo for specifying files within tree artifacts ( #42 )
2022-03-03 16:40:32 -08:00
Derek Cormier
8e6a15ceae
feat: write_source_files
2022-02-07 10:00:35 -08:00
Derek Cormier
b8347b5f0a
feat: add jq toolchain and rule
2021-12-14 17:59:52 -08:00
Alex Eagle
aca19c4ac7
fix: release archive needs a strip_prefix ( #14 )
...
Also remove some dead code
2021-12-11 12:43:57 -08:00
Greg Magolan
0d2981f288
feat: copy_to_directory copies files and directories to an output directory
2021-11-16 21:30:32 -08:00
Chaitanya Varier
6f7469dd03
feat: add doc helpers ( #2 )
...
* add stardoc helpers
* fix incorrect default template in stardoc_with_diff_test()
* add stardoc helpers
* fix failing build for docs.md; add templates; cleanup
2021-11-10 06:34:00 -08:00
Alex Eagle
cb8c2bad22
feat: add some paths and utils ( #1 )
...
* feat: add some paths and utils
* test: exercise relative to_label
* chore: cleanup naming and rctx helper
2021-11-09 15:13:30 -08:00
Alex Eagle
bf35529fc9
Initial commit
2021-11-08 06:46:16 -08:00