Commit Graph

754 Commits

Author SHA1 Message Date
Jason Bedard 350408b93d
perf: do not execute glob for non-glob copy_to_directory root_paths/replace_prefix params (#274)
* glob: add is_glob util method

* perf: do not execute glob for non-glob copy_to_directory root_paths/replace_prefix params

* perf: add common path matching shortcuts

* fix: disallow invalid empty glob expressions
2022-11-02 18:44:42 -07:00
Alex Eagle a9dc052c8b feat: add assert_outputs
It's a simple way to make an executable example demonstrate what outputs a rule produces.
See https://github.com/aspect-build/rules_ts/pull/214 for an example usage in the real world.
2022-10-31 15:25:12 -07:00
Alex Eagle bcffe70196 chore: account for github actions deprecation
Followed https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
2022-10-28 10:59:02 -07:00
Greg Magolan f030847908
feat: add maybe_http_archive (#270) 2022-10-27 15:55:57 -07:00
renovate[bot] 3e4604f9f7
chore(deps): update dependency bazel_gazelle to v0.28.0 (#267)
* chore(deps): update dependency bazel_gazelle to v0.28.0

* Upgrade go toolhain to 1.18.3

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Chuck Grindel <chuck@chuckgrindel.com>
2022-10-27 07:43:26 -06:00
Greg Magolan 21873d57b7
fix: use bzlmod @@ in to_label if Bazel version is 6 or greater (#265) 2022-10-26 15:46:39 -07:00
Greg Magolan 93c43e908e
chore: upgrade to Bazel 6.0.0rc1 but continue to also test Bazel 5.3.2 on CI (#266) 2022-10-26 15:05:27 -07:00
Greg Magolan 35623e23fe
feat: add is_bazel_6_or_greater utility function (#264) 2022-10-26 12:30:08 -07:00
Alex Eagle f242667058 chore: declare bzlmod repository
This is needed to match what's in the upstream BCR now
2022-10-21 15:54:13 -07:00
Alex Eagle 1ec71cdcb5 fix: @@//label is not external
Workaround https://github.com/bazelbuild/bazel/issues/16528
2022-10-21 14:42:37 -07:00
renovate[bot] 5d9fd10235
chore(deps): update dependency bazel to v5.3.2 (#260)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-20 08:06:02 -06:00
renovate[bot] b0921687e5
chore(deps): update dependency bazel_skylib to v1.3.0 (#259)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-12 09:07:11 -06:00
Matt Mackay 569dd2663b
fix: handle other CPU architectures in local_config_platform (#257) 2022-10-07 12:41:31 -07:00
Matt Mackay 9d531ca646
feat: add test_suite containing all tests from write_source_files (#256) 2022-10-05 09:01:50 -07:00
Thulio Ferraz Assis 951e1ec9ad fix: update doc
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
2022-09-29 09:54:09 -07:00
Thulio Ferraz Assis e609c85efe Update stamping.bzl 2022-09-29 09:54:09 -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
Jason Bedard 091b6adc79
chore(deps): remove bazel-integration-testing (#253) 2022-09-26 10:03:41 -07:00
renovate[bot] 4da6ae7fd3
chore(deps): update dependency io_bazel_rules_go to v0.34.0 (#191)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-23 10:00:29 -07:00
renovate[bot] dc008af088
chore(deps): update dependency bazel to v5.3.1 (#225)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-22 17:41:59 -07:00
Jason Bedard 475015bee0
refactor: give internal impl methods meaningful names (#252) 2022-09-20 15:23:56 -07:00
Derek Cormier fa7fdc177e fix: use person as release author 2022-09-19 13:21:36 -07:00
Matt Mackay 2d78989553
refactor: move Aspect Workflows configuration files to new location (#249) 2022-09-19 11:58:04 -04:00
Derek Cormier 20ac1c6e69
chore: upgrade skylib (#248) 2022-09-19 08:06:28 -07:00
Greg Magolan 8e230b0721
feat: add bazel_version value to host_repo repository rule (#246) 2022-09-16 11:51:48 -07:00
Alex Eagle 0450c0c652 Update release.yml
Don't use my PAT, instead use the default credentials like our other rulesets do.
2022-09-14 12:10:21 -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
Chuck Grindel e376f9a733
Add `shlib/lib/assertions.sh` and related tests (#237)
* Add shlib assertions

* Remove obsolete code

* Fix shellcheck warnings

* Switch to explicit -o nounset

* Switched boolean shortcuts to if-then statements

* Review suggestion
2022-09-13 10:35:47 -07:00
Greg Magolan f4b2b1b3b6 fix: disable e2e/bzlmod with RBE temporarily 2022-09-12 20:52:13 -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
Derek Cormier aa42a924fe docs: add stamping to readme index 2022-09-12 19:24:53 -07:00
Jason Bedard 803dbf815e
copy_to_directory performance improvements (#236)
* reduce use of depset.to_list()

* avoid copying arrays when invoking copy_file

* fixup! reduce use of depset.to_list()

* fixup! reduce use of depset.to_list()
2022-09-12 18:01:25 -07:00
Derek Cormier 47be61d96b chore: update MODULE.bazel to use register_toolchains 2022-09-12 16:59:08 -07:00
Derek Cormier c86f355dd0 ci: prepare bazel-lib for publish-to-bcr app 2022-09-10 12:30:53 -07:00
John Firebaugh 21216126b6 Add TODO comment in the windows implementation 2022-09-07 13:53:08 -07:00
John Firebaugh 77137f4020 Add JUnit XML output for diff_test 2022-09-07 13:53:08 -07:00
Alex Eagle eecda0e2d8 ci: exclude rbe jobs if no engflow secret 2022-09-01 16:48:59 -07:00
Alex Eagle 3b9afd5807 Revert "Run PR workflow in the main repo, not the fork"
This reverts commit 64b8541ad6.
2022-09-01 12:30:21 -07:00
Alex Eagle 64b8541ad6
Run PR workflow in the main repo, not the fork 2022-08-31 12:55:39 -07:00
David Zbarsky 5edb10a0d8 Cleanup diff_test and copy_file implementations 2022-08-31 12:12:47 -07:00
Alex Eagle b5653b6037 fix: TARGET make variable expansion: no extra leading @
Part of https://github.com/aspect-build/rules_js/issues/406
2022-08-29 07:45:00 -07:00
Greg Magolan 9efedb72c0 fix: handle the ** root_path case correctly in copy_to_directory 2022-08-25 21:25:13 -07:00
Greg Magolan af057bd509
chore: don't fail fast on GitHub actions matrix (#226) 2022-08-25 20:44:07 -07:00
Greg Magolan cbec12b286 chore: remote out-of-date reference to DefaultOutputPathInfo in write_source_files error message 2022-08-25 20:25:21 -07:00
Alex Eagle f688d17cfb feat: jq supports stamping
Fixes #223
2022-08-22 12:39:54 -07:00
Alex Eagle de5274835b refactor: tighten up key management code 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
Derek Cormier 889e736476 fix: fix a bug where the same file couldn't be copied to the same output
dir twice on Windows
2022-08-20 11:31:56 -07:00
Derek Cormier cd6c2f63ee fix: broken gh actions cache 2022-08-19 08:42:26 -07:00