1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//! Infrastructure tooling.
use ;
// NOTE: `.terraform/` holds provider plugins and modules fetched from the registry, so it is
// fair to ask whether ADR 0001's "no dependency directories" rule covers it. It does not, and
// the distinction is deliberate: `terraform init` reconstructs it from the lock file in the
// working directory, it is per-workspace rather than shared, and duplicated provider binaries
// across a dozen module directories are the single largest reclaimable thing in most
// infrastructure repositories. What it never holds is resource state — that is `terraform.tfstate`
// beside it, or a remote backend. `.terraform/terraform.tfstate` records only which backend was
// initialised, and `init` writes it again. On by default, and confirmed against a real sweep.
pub const TERRAFORM: Ecosystem = Ecosystem ;
// NOTE: `bazel-bin` and friends are convenience *symlinks* into the output base. ADR 0006
// refuses to delete through a symlink, so these are found, reported, and refused rather than
// removed. That is the safe outcome; reclaiming the output base itself is out of scope.
//
// The names are literal, not the `bazel-*/` glob this shipped with. Every genuine target here
// is a symlink and is refused, so the glob's only *effective* removals were false positives:
// a real `bazel-toolchains/` beside a WORKSPACE — the kind of thing people vendor or submodule
// — was removed by default. The entry exists to make the symlinks visible, and it cannot do
// that by matching things that are not them.
//
// `bazel-<workspace-name>` is the fourth convenience symlink and is deliberately absent: its
// name depends on the WORKSPACE's declared name, so no literal covers it and a glob is what
// caused the problem.
//
// The four cache artifacts below are Python's own — `__pycache__/`, `.pytest_cache/`,
// `.mypy_cache/`, `.ruff_cache/` are declared again here, under Bazel rather than under
// `python::PYTHON`, anchored `WorkspaceRoot` instead of `Sibling`/`Ancestor(1)`. That is not
// duplication for its own sake: a directory can be proven by either ecosystem's entry, and a
// `pyproject.toml` a level up is still the faster, narrower proof when it is there. This entry
// exists for the tree that has no such manifest anywhere — the WORKSPACE/MODULE.bazel this
// ecosystem is already keyed on covers it, at any depth, which the bounded Ancestor(1) in
// `python::PYTHON` cannot. See `adrs/0002-marker-anchored-classification.md`'s `WorkspaceRoot`
// amendment for the measurement (0 of 45 sampled `__pycache__` directories in a real Bazel
// monorepo had a Python manifest anywhere above them) and for why an unbounded climb is safe
// for *this* marker specifically and would not be for a per-package one.
pub const BAZEL: Ecosystem = Ecosystem ;