constellation/bazel
Markus Rudy 32d3b4e87c
ci: introduce keep-sorted (#2836)
Long lists of items in source code or config can be hard to work with as
a human, most problematic being out-of-order entries in an otherwise
ordered list. This is where keep-sorted comes to the rescue: we can
leave two little comments on every listing we care about, and
keep-sorted ensures that the listing stays in order.

This commit also applied keep-sorted to the CODEOWNERS file, hopefully
demonstrating its usefulness to some extent. I'd expect more uses for
keep-sorted to be discovered organically over time.

keep-sorted is super fast, so it should not be a problem to add it to
the //:tidy target, even if we scan all files in the code base. On my
MacBook:

$ time (find . -not -path "./.git/*" -type f | sort | xargs "${keep_sorted}" --mode fix)

real	0m0.249s
user	0m0.124s
sys	0m0.129s
2024-01-30 14:39:49 +01:00
..
bazelrc ci: disable curses support 2023-12-11 14:27:31 +01:00
ci ci: introduce keep-sorted (#2836) 2024-01-30 14:39:49 +01:00
container deps: bump Go to 1.21.4 (#2569) 2023-11-09 20:17:14 +01:00
devbuild terraform-provider: only build as enterprise user (#2770) 2023-12-22 08:38:28 +01:00
envtest bazel: provide k8s / envtest toolchains 2023-08-17 10:46:45 +02:00
go bazel: use prebuilt Go toolchain (go.dev/dl) (#2796) 2024-01-05 11:52:22 +01:00
mkosi image: add mainline kernel and azure tdx image target 2024-01-16 17:34:44 +01:00
oci libvirt: build containerized libvirt as nix container image 2023-12-01 09:35:33 +01:00
osimage bazel: add upload_os_images rule 2024-01-15 13:53:15 +01:00
patchelf bazel: add patchelf rule 2023-12-01 09:35:33 +01:00
platforms bazel: define common platforms for multi-platform builds 2023-12-01 09:35:33 +01:00
proto use toolchains from nixpkgs (with fallback) 2023-09-27 17:58:19 +02:00
rbe bazel: add buildbarn toolchain (Ubuntu 22.04) 2023-11-10 18:15:59 +01:00
release deps: update rules_oci to a pre-release version to fix memory leak (#2729) 2023-12-19 15:40:04 +01:00
rpm image: install rpms from lockfile 2023-10-17 09:23:56 +02:00
settings terraform-provider: init provider scaffolding (#2632) 2023-11-24 15:58:21 +01:00
sh use toolchains from nixpkgs (with fallback) 2023-09-27 17:58:19 +02:00
toolchains ci: introduce keep-sorted (#2836) 2024-01-30 14:39:49 +01:00