Commit Graph

535 Commits

Author SHA1 Message Date
Greg Magolan bad190e3dd
chore: ignore override_local_config_platform if Bazel 6 or newer (#304) 2023-01-01 15:17:41 -08:00
Greg Magolan 0327e5c221
chore: update to Bazel 6.0.0 and Aspect CLI 5.1.0 (#303) 2023-01-01 14:15:59 -08:00
Greg Magolan 0d456be3c6
fix: formatting for new docsite (#302) 2022-12-28 08:03:18 -08:00
Derek Cormier 2689a48940
fix: fix a bug where transition tests required cpp toolchain on osx (#299) 2022-12-14 18:49:45 -08:00
Derek Cormier 72a26212f2
Add platform_transition_binary rule (#289)
* feat: add platform_transition_binary rule
2022-12-14 11:21:08 -08:00
Greg Magolan 2c66c1c778
fix: fail with better error message with trying to base64 decode a string that is not base64 encoded (#298) 2022-12-12 12:03:18 -08:00
Alex Eagle d82f551393
Update workspace_snippet.sh 2022-12-04 09:42:52 -08:00
Greg Magolan 35b7662e55
fix: write_source_files should use target platform for additional_update_targets (#297) 2022-12-03 15:02:33 -08:00
Greg Magolan 68aee64093
feat: add write_source_file to public API (#295) 2022-12-03 14:57:28 -08:00
Greg Magolan 421cf266bc
fix: add diff_test to docs (#296) 2022-12-03 11:32:37 -08:00
Greg Magolan 0109a2eee3
refactor: use rm -R instead -r as it is the primary option and lowercase -r is the alias (#294) 2022-12-03 10:52:52 -08:00
Greg Magolan 9059f8fa5e feat: add executable attribute to write_source_files 2022-12-03 10:46:08 -08:00
Greg Magolan e9b66b5e0a
Update README.md 2022-11-25 21:59:05 -08:00
Greg Magolan 5215e22a9e
Update README.md 2022-11-25 21:58:51 -08:00
Greg Magolan 3d73637ee5
feat: add base64 encode & decode utility functions (#292) 2022-11-25 17:00:02 -08:00
Greg Magolan b1ee3675f2
build: fix bzlmod presubmit failure with bazel version (#288) 2022-11-18 13:05:24 -08:00
Greg Magolan 690cdbf953
chore: unrelease (#287) 2022-11-17 14:36:52 -08:00
Greg Magolan f4d07dd326
chore: update to Aspect CLI 5.0.1 (#286) 2022-11-16 16:12:46 -08:00
Greg Magolan 57d5511867
chore: update to Aspect CLI 5.0.0 (#285) 2022-11-16 01:56:57 -08:00
Greg Magolan 1f259abdd2
chore: update to Aspect CLI 4.3.2 (#284) 2022-11-15 21:12:47 -08:00
Greg Magolan b5e0ac13e1
perf: optimize glob_match if the expression does not have any glob symbols (#283) 2022-11-14 14:45:25 -08:00
Greg Magolan 98998d5c72
build: use Aspect CLI in e2e tests (#282) 2022-11-14 10:11:48 -08:00
Greg Magolan c3b849a69e
chore: update to Aspect CLI Pro 4.2.2 (#281) 2022-11-12 10:19:30 -08:00
Greg Magolan 5cf6ff92a5
ci: fix pattern for Bazel version CI matrix so Aspect CLI is still used (#280) 2022-11-12 07:31:19 -08:00
Greg Magolan 5c0a8f07a8
chore: update to Aspect CLI Pro 4.2.1 (#279) 2022-11-11 17:45:37 -08:00
Alex Eagle a145c6bb47
feat: install Aspect CLI for all users (#278)
Assuming you are using Bazelisk, this causes it to fetch Aspect's CLI and use that to wrap Bazel
2022-11-10 13:52:31 -08:00
Greg Magolan f43e2944ca release: v1.16.1 2022-11-07 18:29:35 -08:00
Greg Magolan 9077a147c0
fix: fix copy_to_directory flattening with root_paths = ['**'] (#277) 2022-11-07 18:28:04 -08:00
Greg Magolan eab96f51f0
refactor: move bzl_library target out of @local_config_platform and just use exports_files in there instead (#276) 2022-11-04 15:11:14 -07:00
Greg Magolan 1f76b0b0bb
chore: nit cleanup in copy_to_directory _longest_glob_match helper (#275) 2022-11-03 09:42:03 -07:00
Greg Magolan bd65e6ccfb release: v1.16.0 2022-11-02 18:45:57 -07:00
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