Commit Graph

67 Commits

Author SHA1 Message Date
renovate[bot] 3a9720ec61
chore(deps): update dependency io_bazel_rules_go to v0.50.1 (#930)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-12 06:53:29 -07:00
renovate[bot] 4e19e6aee7
chore(deps): update dependency io_bazel_rules_go to v0.50.0 (#925)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-02 15:29:45 -07:00
Greg Magolan 11aacaf5df
chore: enable go, shell, yaml formatters and bazel run //:format (#917) 2024-08-20 11:56:40 -07:00
Greg Magolan cccf5ac1b8
refactor: make root workspace bzlmod only (#915) 2024-08-20 14:20:51 -04:00
Alex Eagle 492de2b358
chore: green up CI on main branch (#904)
* chore: green up CI on main branch

We landed a test that broke the macos/windows builds, let's just disable it there

* chore: mark it flaky

* Update MODULE.bazel
2024-08-14 11:31:04 -07:00
Greg Magolan a36dd1201a
chore: bazel run //:buildifier (#903) 2024-08-14 11:27:58 -07:00
Justin Pinkul 74ac451d8a
Adding a preserve time feature to copy_to_directory and copy_directory (#898) 2024-08-10 22:08:56 -07:00
Alex Eagle 4ad02b7795
refactor(release): switch release integrity to be dynamic (#854)
* refactor(release): switch release integrity to be dynamic

This matches rules_py as documented by
https://blog.aspect.build/releasing-bazel-rulesets-rust

It has the benefit that developers no longer get yelled at to vendor some updated integrity hashes into bazel-lib every time they touch the Go sources.

* refactor: echo should produce trailing newline

* chore: bump action-gh-release to avoid Node 16 warning

* chore: update test that is sensitive to compilation mode

We now only use --compilation_mode=opt when cutting a release
2024-05-23 16:08:35 -07:00
Greg Magolan ffc5a7bfa1
chore: align ci patterns (#843) 2024-05-13 23:51:10 -07:00
renovate[bot] e19315230c chore(deps): update dependency bazel_skylib to v1.5.0 2024-01-30 00:18:44 -08:00
Sahin Yort 4f6b4bd5cb
feat: implement bats test runner (#699) 2023-12-20 13:08:47 -08:00
Greg Magolan b1c342a96f
chore: bazel run //:format (#682) 2023-12-08 00:30:39 -08:00
Derek Cormier 2433bae249
chore: add an e2e to test copy actions (#665) 2023-11-18 19:00:40 -08:00
Derek Cormier c3a8cb0c72
fix: remove need for rules_go when depending on a bzl_library target (#663) (#664) 2023-11-16 14:26:40 -08:00
Derek Cormier 5bd6e5fdd4
fix(ci): fix bzlmod issues and enable on ci (#658) 2023-11-15 15:07:03 -08:00
Greg Magolan fe2d31870c
chore: green up Windows CI (#643) 2023-11-07 14:01:45 -08:00
Derek Cormier 20f1ac39e0
refactor: rework toolchain registration for WORKSPACE and bzlmod users (#597) 2023-10-10 12:16:13 -07:00
Douglas Parker 323329f119 fix: always include files from the same workspace as the build target in `copy_to_directory()` (#360)
* fix: always include files from the same workspace as the build target in `copy_to_directory`

Fixes #359.

This updates the `copy_to_directory` tool to accept a workspace name representing the workspace of the target it is executing under. Any files in this workspace are automatically included, regardless of the `include_external_repositories` option. This makes it support usage within an external target (such as `@wksp//:dir`).

* test: add e2e test which uses `copy_to_directory` within an external workspace

Refs #359.

This should catch regressions where no files are copied when built within an external workspace and not using `include_external_repositories`.

* ci: fix stray workspace refs

---------

Co-authored-by: Alex Eagle <alex@aspect.dev>
2023-10-10 10:57:08 -07:00
Derek Cormier 078530c7a1
fix: fix bad import (#583) 2023-10-05 13:00:03 -07:00
Alex Eagle 652773d5fa
fix: register tar toolchain for bzlmod users (#574) 2023-10-04 10:43:09 -07:00
Sahin Yort ef364b54b4
refactor: consume tools from source if unstamped (#543) 2023-09-24 15:06:10 -07:00
Sahin Yort e3015cd8fa
refactor: cleanup e2e (#542) 2023-09-22 13:04:09 -07:00
Matt Mackay 62394fbb68
fix: lookup source files from execroot when running diff_test on RBE (#531) 2023-09-21 13:27:08 -07:00
Sahin Yort 270a1bd9e3
fix: check in generated bazelrcs (#535) 2023-09-20 15:57:29 -07:00
Ted Kaplan fc3c3181f3
docs: Add --incompatible_disallow_empty_glob to correctness.bazelrc (#524) 2023-09-18 19:58:27 -07:00
Alex Eagle 594fb03874 fix: green up red main CI
On windows, we can't turn on the Aspect CLI currently as we don't have a release
2023-08-30 09:13:18 -07:00
renovate[bot] 6a7246d118 chore(deps): update dependency bazel_skylib to v1.4.2 2023-07-17 15:18:05 -07:00
Jason Bedard 47dd4ce9fd chore: run buildifier 2023-06-13 16:28:17 -07:00
Sahin Yort a9eb91dd16
chore: add trailing newline (#439) 2023-05-16 16:46:16 -07:00
Sahin Yort 6af964f261
feat: support stamp substituions (#435) 2023-05-16 16:14:50 -07:00
Greg Magolan 0faa797de6 chore: remove aspect cli bazeliskrc from e2e/smoke as it breaks BCR presubmit 2023-03-11 17:46:40 -08:00
Greg Magolan 8255da2d2c
chore: remove unnecessary call to register_coreutils_toolchains() in e2e/coreutils (#393) 2023-03-10 16:31:54 -08:00
Sahin Yort e31867302e
chore: use coreutils hashsum (#333) 2023-03-10 20:37:57 +03:00
Derek Cormier be41c1d686
fix: remove merkle tree caching (#390) 2023-03-09 12:24:44 -08:00
Derek Cormier 018fb2db18 chore: set --heap_dump_on_oom preset to apply to all commands 2023-03-01 15:40:17 -08:00
Derek Cormier 2704c61128 chore: remove unnecessary duplication in bazelrc presets 2023-03-01 14:47:54 -08:00
Greg Magolan 91eeca7d40
fix: remove --experimental_guard_against_concurrent_changes from recommended correctness settings (#380) 2023-02-23 00:28:46 -08:00
Greg Magolan 1fdfd6e831
fix: add missing **kwargs to write_aspect_bazelrc_presets (#379) 2023-02-22 12:17:00 -08:00
Derek Cormier 83fb3050c2 feat: allow additional common args to be passed to update_docs 2023-02-21 10:49:06 -08:00
Greg Magolan 86a2676211
fix: fixup BCR presubmit; it doesn't like symlinks to rc files (#374) 2023-02-17 17:03:55 -08:00
Greg Magolan b543f30eb3
fix: fixup BCR presubmit failure (#373) 2023-02-17 16:45:57 -08:00
Greg Magolan 569fa374ef
feat: add write_aspect_bazelrc_presets macro (#370) 2023-02-17 14:34:06 -08:00
Greg Magolan fde705ba8c
feat: make bazel-lib the source-of-truth for Aspect recommended bazelrc settings (#369) 2023-02-16 16:59:21 -08:00
Greg Magolan 25a3040180
chore: add e2e/workspace test (#339) 2023-01-16 21:46:39 -08:00
Greg Magolan 497409b15b
fix: bzlmod toolchain registration for copy_directory & copy_to_directory (#336) 2023-01-16 19:37:36 -08:00
Derek Cormier c64bb72324 fix: write_source_files incompatibility with bzlmod when writing from external repo 2023-01-09 10:54:51 -08:00
Greg Magolan fb3ef6e45d
feat: improved copy_to_directory performance & globbing support using copy_to_directory_bin_action (#311) 2023-01-07 11:26:27 -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 b1ee3675f2
build: fix bzlmod presubmit failure with bazel version (#288) 2022-11-18 13:05:24 -08:00