Skip to content

Commit a5450ea

Browse files
NopeCharonSunrisepeakspeak-agent
authored
feat: the cache collects the work directories of plans that describe (#977)
* feat: the cache collects the work directories of plans that describe `mcpp emit build-database`, `mcpp pack --list-formats` and the pin check of `mcpp publish` plan a project without writing into it, each in a directory of the home: `cache/build-database/<key>`, `cache/pack-formats/<key>` and `cache/publish-plan/<key>`, one per project. Nothing removed one. `cache gc`, `prune` and `clean` read only the build cache, so the directory of a project that no longer exists stayed for ever: one home held 626 of them, 3.4 GB, and another 1.9 GB under pack-formats (mcpp#969). The three commands now take their directory from one function, mcpp::bmi_cache::plan_work_dir. It creates the directory and records each use on its `.mcpp-plan` record: the record is written with the project root when the directory is new, and otherwise its time is set by mcpp::home::mark_used, the same rule the build cache's entries follow. The cache's maintenance walks these directories as entries of kind `work`: - `mcpp cache list` shows each one, named by the command and the project its record names. - The collection after a build, `cache prune --older-than`, `cache gc --older-than` and `gc --max-size` collect a directory by its record's time. A directory written before the record is dated by its own time. - `mcpp cache clean --work` empties the three areas, and `--all` now includes them. A bare `cache clean` still drops package entries only. Removing a directory costs the next plan of that project only writing it again (SPEC-005 R2.1 already calls the directory a cache). e2e 1119 seeds the three areas in a fresh home and checks the listing, the collection by age and by size, and the clean flags. e2e 921 checks that `emit build-database` records the project in its work directory. docs/09 and docs/04 describe the store and the flag, in English and Chinese. Closes #969. * test: write the plan record in binary mode so Windows adds no carriage return The product writes and reads .mcpp-plan in binary; the e2e case seeded it in text mode, so on Windows the project label ended in a carriage return. * cache: clean --all removes every kind of entry, the work directories of plans included A flag of their own was one more word for the surface while the outputs of build programs, the units and the patched variants had none: --all stated every kind and left all four. It now removes what cache list shows. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com> * fix: a missing mcpp.lock is named, and a component of emit sbom states the package The reader read a file that is not there as an empty lock, and the two commands that report or assert the record were written for a reader that fails: --locked named every package as one that is not in the lock, and emit sbom gave the root alone without its note. load_existing states the absence, and both read it. The refusal of --locked carries a help line and writes no lock. An entry's name is the lock's key: it may carry the namespace as a prefix, and marks a variant (+p<digest>) and a version only build programs hold (+b<digest>). emit sbom wrote the key as the package's name, so one package had the purl pkg:mcpp/compat/compat.zlib and a build program's version was a package of another name. short_name, moved from the lock's writer, and package_name state the package; a purl percent-encodes its segments; one identity under two spellings is one component; a version only build programs hold names them in mcpp:build-program properties. Closes #891, closes #892. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com> * fix: a range that reaches no key because of a pre-release names the pin A range matches a pre-release only when it names one of the same version, so no range reached a package whose one key is 0.0.0-651a425, and the refusal listed that key without the cause. For the highest pre-release whose release the range admits and which the range does not see, the refusal states the rule and its help line is the exact pin. A pre-release the range sees and excludes, or one outside the range, stays an ordinary miss. prerelease_visible is exported for the question. Closes #370. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com> * ci(fresh-install): the tumbleweed leg refreshes before it installs zypper install continues on stale or empty metadata when its own refresh fails, and the leg failed with "No provider of 'binutils' found", naming a package instead of the repository that could not be read. The refresh is its own command, retried once, and the install runs only after it succeeds. Closes #523. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com> --------- Co-authored-by: Sunrisepeak <speakshen@163.com> Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
1 parent ad367ef commit a5450ea

21 files changed

Lines changed: 615 additions & 56 deletions

‎.github/workflows/ci-fresh-install.yml‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,19 @@ jobs:
266266
- distro: arch
267267
image: archlinux:latest
268268
setup: pacman -Syu --noconfirm curl bash tar gzip xz git findutils binutils file
269+
# The refresh is its own command, retried once, and the install runs
270+
# only after it succeeds (#523). `zypper install` refreshes too, but
271+
# when that refresh fails it continues on stale or empty metadata,
272+
# and the leg went red with `No provider of 'binutils' found` --
273+
# naming a package instead of the repository that could not be read.
274+
# A rolling image can meet a repository's new signing key, which
275+
# `-n` alone rejects; --gpg-auto-import-keys accepts it.
269276
- distro: tumbleweed
270277
image: opensuse/tumbleweed:latest
271-
setup: zypper -n install curl bash tar gzip xz git findutils binutils file
278+
setup: >-
279+
{ zypper -n --gpg-auto-import-keys refresh ||
280+
{ sleep 15; zypper -n --gpg-auto-import-keys refresh; }; } &&
281+
zypper -n install curl bash tar gzip xz git findutils binutils file
272282
- distro: debian-testing
273283
image: debian:testing
274284
setup: apt-get update && apt-get -y install curl bash tar gzip xz-utils git ca-certificates binutils findutils file

‎docs/05-dependencies.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,12 @@ and `"0.0"` is `>= 0.0.0, < 0.1.0` (before 2026.10.31.1 both matched 0.0.0
150150
alone). The dependency conflict check and the address check of `--locked` read
151151
requirements the same way.
152152

153+
A range matches a pre-release key (`1.0.0-rc.1`) only when it names a
154+
pre-release of the same version, so `*` or `^0.0` reaches none of the keys of a
155+
package that publishes only pre-releases (`compat.glad` publishes
156+
`0.0.0-651a425`). The error states that cause for the highest pre-release whose
157+
release the range admits, and its `help:` line is the exact pin to write.
158+
153159
### `visibility` — whether a dependency's usage crosses this package's own boundary
154160

155161
```toml

‎docs/09-commands-by-scenario.md‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ them. Confusing them costs a full rebuild.
3232
|---|---|---|---|
3333
| `target/<triple>/<fingerprint>/`, `target/.build-mcpp/{out,host}/` | one project | a configuration fingerprint changes and opens a new directory; a build program's outputs and the build programs are kept per configuration | `mcpp clean`, `mcpp clean --stale` |
3434
| the build cache (`mcpp cache dir`) | the whole machine | any project compiles a dependency or a `std` module, or builds a host tool, or compiles the `mcpp` module its build program imports | collected after a build when unused for `[cache] unused_days`; `mcpp cache gc`, `mcpp cache prune`, `mcpp cache clean` |
35+
| the work directories of plans (`<home>/cache/{build-database,pack-formats,publish-plan}/`) | the whole machine, one per project | `mcpp emit build-database`, `mcpp pack --list-formats` or `mcpp publish` plans a project | collected with the build cache's entries, by last use; `mcpp cache clean --all` |
3536

3637
`mcpp clean` removes `target/` entirely, and the next build recompiles
3738
everything. `mcpp clean --stale` removes only the fingerprint directories that
@@ -129,6 +130,20 @@ mcpp cache gc --older-than 60d --dry-run # what would go, cache and store
129130
mcpp cache gc --older-than 60d
130131
```
131132

133+
`mcpp emit build-database`, `mcpp pack --list-formats` and `mcpp publish`'s
134+
check of a library's pins plan a project without writing into it, each in a work directory of the home, one
135+
per project: `<home>/cache/build-database/`, `cache/pack-formats/` and
136+
`cache/publish-plan/`. A plan records its use in the directory's `.mcpp-plan`,
137+
whose one line is the project root. `mcpp cache list` shows each directory as
138+
an entry of kind `work`, named by the command and that project; the
139+
collection after a build, `mcpp cache prune`, `mcpp cache gc --older-than` and
140+
`gc --max-size` collect it by last use, as they collect a package entry.
141+
`mcpp cache clean --all` removes every entry of the cache, these and the
142+
outputs of build programs, the units and the patched variants included; the
143+
flags `--deps`, `--std` and `--tools` each remove one kind and leave them. A
144+
directory written before the record is dated by its own time. Removing one costs the
145+
next plan of that project nothing but writing it again (mcpp#969).
146+
132147
## The versions a package publishes
133148

134149
`mcpp search` matches a substring and appends what each hit publishes, merged

‎docs/51-supported-versions.md‎

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ error: --locked was given and this resolution differs from mcpp.lock:
9797
```
9898

9999
A release build, an audit or a CI job should pass `--locked`. It disables the
100-
build fast path, so the assertion always runs.
100+
build fast path, so the assertion always runs. With no `mcpp.lock` there is no
101+
record to assert against: `--locked` then fails saying so, rather than naming
102+
every package as one that moved, and writes none.
101103

102104
The lock does not yet constrain resolution — it records and verifies it.
103105
Pinning a resolution to the lock as an input is a separate change to the
@@ -112,10 +114,20 @@ resolution:
112114
mcpp emit sbom -o sbom.json
113115
```
114116

117+
A component's `name`, `group` and `purl` state the package, whichever way the
118+
manifest that declared it spelled it: `cmdline` and `mcpplibs.cmdline` are both
119+
`pkg:mcpp/mcpplibs/cmdline@<version>`. A variant keeps its digest in the name,
120+
and a version only build programs hold is the package at that version, with one
121+
`mcpp:build-program` property for each program. A purl percent-encodes its
122+
segments, so `+` is written `%2B`.
123+
115124
It reads `mcpp.lock` rather than resolving again, because a document describing
116125
a different graph from the one that was built is worse than no document. A
117126
component whose licence mcpp does not know is emitted as `NOASSERTION` rather
118-
than omitted: an absent field reads as "not examined".
127+
than omitted: an absent field reads as "not examined". With no `mcpp.lock` the
128+
document names the root package alone, and a note on standard error says that
129+
nothing is recorded: that is the whole truth for a project with no dependencies,
130+
and not for one that has never been built.
119131

120132
## Default versions (2026.11.21.1+)
121133

‎docs/zh/05-dependencies.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ qux = ">=1.0, <2.0" # Range combination
132132
不带运算符的部分写法同样按 caret 的通配规则:`"0"` 为 `>= 0.0.0, < 1.0.0`,`"0.0"` 为 `>= 0.0.0, < 0.1.0`(2026.10.31.1 之前
133133
两者都只匹配 0.0.0)。依赖冲突检查与 `--locked` 的地址核对以同样的方式读取要求。
134134

135+
范围只在写出同一版本的预发布时才匹配预发布键(`1.0.0-rc.1`),因此对只发布预发布键的包
136+
(`compat.glad` 只发布 `0.0.0-651a425`),`*` 或 `^0.0` 一个键也够不着。这时的错误针对范围所容许的
137+
版本中最高的那个预发布键说明原因,并在 `help:` 行给出应写的精确版本。
138+
135139
### `visibility` —— 一个依赖的用法是否跨越本包自己的边界
136140

137141
```toml

‎docs/zh/09-commands-by-scenario.md‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
|---|---|---|---|
3030
| `target/<三元组>/<指纹>/`、`target/.build-mcpp/{out,host}/` | 单个工程 | 一个配置指纹变化,开出一个新目录;构建程序的输出与构建程序按配置保存 | `mcpp clean`、`mcpp clean --stale` |
3131
| 构建缓存(`mcpp cache dir`) | 整台机器 | 任何工程编译一个依赖、一个 `std` 模块,或构建一个 host 工具,或编译其构建程序 import 的 `mcpp` 模块 | 构建后回收 `[cache] unused_days` 内未使用的条目;`mcpp cache gc`、`mcpp cache prune`、`mcpp cache clean` |
32+
| 规划的工作目录(`<home>/cache/{build-database,pack-formats,publish-plan}/`) | 整台机器,每个工程一个 | `mcpp emit build-database`、`mcpp pack --list-formats` 或 `mcpp publish` 规划一个工程 | 与构建缓存的条目一同按最后使用时间回收;`mcpp cache clean --all` |
3233

3334
`mcpp clean` 整个删掉 `target/`,下次构建重编一切。`mcpp clean --stale`
3435
只删已无构建记录使用的指纹目录,在用的配置保留。每个配置目录在 `uses.list` 中
@@ -102,6 +103,16 @@ mcpp cache gc --older-than 60d --dry-run # 会回收什么:缓存与存储
102103
mcpp cache gc --older-than 60d
103104
```
104105

106+
`mcpp emit build-database`、`mcpp pack --list-formats` 与 `mcpp publish` 对库的版本钉的检查规划工程而不写入工程,
107+
各自在 home 的一个工作目录中进行,每个工程一个:`<home>/cache/build-database/`、`cache/pack-formats/`
108+
与 `cache/publish-plan/`。规划把一次使用记在目录的 `.mcpp-plan` 上,该文件只有一行,即工程根。
109+
`mcpp cache list` 把每个目录列为 `work` 类条目,以命令与该工程命名;构建后的回收、`mcpp cache prune`、
110+
`mcpp cache gc --older-than` 与 `gc --max-size` 按最后使用时间回收它,与回收包条目相同。
111+
`mcpp cache clean --all` 移除缓存的全部条目,包括这些目录以及构建程序的输出、编译单元与打过补丁的变体;
112+
`--deps`、`--std`、`--tools` 各移除一类条目,不触及它们。
113+
早于该记录写出的目录以目录自身的时间计。
114+
移除一个目录,该工程的下一次规划只需重新写出它(mcpp#969)。
115+
105116
## 一个包已发布的版本
106117

107118
`mcpp search` 按子串匹配,并在每个命中行后附上该包发布的版本 —— 跨描述符

‎docs/zh/51-supported-versions.md‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ error: --locked was given and this resolution differs from mcpp.lock:
8484
```
8585

8686
发布构建、审计或 CI 作业应当传入 `--locked`。它会关闭构建快路径,因此该断言
87-
总会执行。
87+
总会执行。没有 `mcpp.lock` 时没有可供断言的记录:此时 `--locked` 失败并说明这一点,
88+
而不是把每个包都报成发生了变化,也不写出 lock。
8889

8990
锁尚不约束解析——它只记录并校验解析结果。把锁作为解析的输入来钉住结果,是对
9091
解析器的另一项改动。
@@ -97,9 +98,15 @@ error: --locked was given and this resolution differs from mcpp.lock:
9798
mcpp emit sbom -o sbom.json
9899
```
99100

101+
组件的 `name`、`group` 与 `purl` 陈述的是包本身,与声明它的清单如何拼写无关:`cmdline` 与
102+
`mcpplibs.cmdline` 都是 `pkg:mcpp/mcpplibs/cmdline@<版本>`。变体在名字中保留其摘要;只被构建程序
103+
持有的版本就是该版本的这个包,并为每个构建程序带一条 `mcpp:build-program` 属性。purl 对各段做
104+
百分号编码,因此 `+` 写作 `%2B`。
105+
100106
它读取 `mcpp.lock` 而不是重新解析,因为一份描述了与实际构建不同的依赖图的
101107
文档,比没有文档更糟。许可证 mcpp 无法识别的组件会被写成 `NOASSERTION` 而不是
102-
省略:缺失的字段读起来像「未检查」。
108+
省略:缺失的字段读起来像「未检查」。没有 `mcpp.lock` 时,文档只列出根包,并在标准
109+
错误上提示没有任何记录:这对没有依赖的工程是全部事实,对从未构建过的工程则不是。
103110

104111
## 缺省版本(2026.11.21.1 起)
105112

‎modules/versioning/src/version_req.cppm‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ bool is_constraint(std::string_view s);
147147

148148
bool matches(const Requirement& r, const Version& v);
149149

150+
// Whether `r` reaches the pre-release `v` at all: it names a pre-release of the
151+
// same numbers. `matches` asks it first; a refusal asks it to tell a pre-release
152+
// the range does not see from one it sees and excludes.
153+
bool prerelease_visible(const Requirement& r, const Version& v);
154+
150155
// Indices of ALL versions in `available` that match `req` and tie for highest
151156
// precedence. Normally one element. More than one means distinct entries
152157
// compare EQUAL — only possible when they differ solely in build metadata
@@ -319,6 +324,8 @@ std::expected<Comparator, std::string> parse_comparator(std::string_view s) {
319324
return Comparator{op, *v};
320325
}
321326

327+
} // namespace
328+
322329
// SemVer/npm/Cargo pre-release visibility: a pre-release candidate is only
323330
// eligible when the requirement itself names a pre-release at the SAME numeric
324331
// tuple. Two bugs collapse into this one rule:
@@ -334,8 +341,6 @@ bool prerelease_visible(const Requirement& r, const Version& v) {
334341
return false;
335342
}
336343

337-
} // namespace
338-
339344
bool is_constraint(std::string_view s) {
340345
if (s.empty()) return true; // "any version"
341346
if (s == "*") return true;

‎src/bmi_cache/maintenance.cppm‎

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// $MCPP_HOME/build-cache/v1/std/<identity>/std-module.json
77
// $MCPP_HOME/build-cache/v1/tool/<index>/<pkg>@<ver>/<key>/entry.json
88
// (a host tool, mcpp.build.tool_store; last use = the record's time)
9+
// $MCPP_HOME/cache/{build-database,pack-formats,publish-plan}/<key>/.mcpp-plan
10+
// (the work directory of a plan that describes; last use = the record's time)
911
//
1012
// Two things this file did wrong before the layout change and that the new
1113
// entry.json fixes:
@@ -23,6 +25,7 @@ export module mcpp.bmi_cache.maintenance;
2325

2426
import std;
2527
import mcpp.home;
28+
import mcpp.home.files; // mark_used
2629
import nlohmann.json;
2730
import mcpp.libs.toml;
2831
import mcpp.ui;
@@ -95,6 +98,58 @@ export std::optional<std::uintmax_t> parse_size(std::string_view v) {
9598
return std::nullopt;
9699
}
97100

101+
// THE WORK DIRECTORIES OF PLANS THAT DESCRIBE (mcpp#969). `mcpp emit
102+
// build-database`, `mcpp pack --list-formats` and the pin check of `mcpp
103+
// publish` plan a project without writing into it (PrepareIntent::Describe),
104+
// each in a directory of the home, `cache/<area>/<key>`, one per project.
105+
// Nothing removed one: a home measured on 2026-11-19 held 626 of them, 3.4 GB,
106+
// most of them for projects that no longer existed. A plan states its use on
107+
// the directory's record, and `cache list`, `gc`, `prune` and the collection
108+
// after a build treat each directory as an entry. Removing one costs nothing
109+
// but the next plan's writing it again (SPEC-005 R2.1).
110+
export enum class PlanArea { BuildDatabase, PackFormats, PublishPlan };
111+
112+
namespace {
113+
114+
struct PlanAreaInfo {
115+
PlanArea area;
116+
std::string_view dir; // under `<home>/cache/`
117+
std::string_view command; // what plans there, as `cache list` names it
118+
};
119+
120+
constexpr std::array<PlanAreaInfo, 3> kPlanAreas{{
121+
{PlanArea::BuildDatabase, "build-database", "emit build-database"},
122+
{PlanArea::PackFormats, "pack-formats", "pack --list-formats"},
123+
{PlanArea::PublishPlan, "publish-plan", "publish"},
124+
}};
125+
126+
// The record whose time is the directory's last use (mcpp::home::mark_used);
127+
// its one line is the project root the directory plans.
128+
constexpr std::string_view kPlanRecord = ".mcpp-plan";
129+
130+
std::filesystem::path plan_area_root(const PlanAreaInfo& area) {
131+
return mcpp::home::root() / "cache" / area.dir;
132+
}
133+
134+
} // namespace
135+
136+
// The work directory of a plan of `area` named `key`, created, with its use
137+
// stated: the record is written when the directory is new and its time set to
138+
// now otherwise. `project` is what `cache list` names the directory by.
139+
export std::filesystem::path plan_work_dir(PlanArea area, std::string_view key,
140+
const std::filesystem::path& project) {
141+
const auto& info = *std::ranges::find(kPlanAreas, area, &PlanAreaInfo::area);
142+
const auto dir = plan_area_root(info) / std::string(key);
143+
std::error_code ec;
144+
std::filesystem::create_directories(dir, ec);
145+
const auto record = dir / kPlanRecord;
146+
if (std::filesystem::exists(record, ec))
147+
mcpp::home::mark_used(record);
148+
else
149+
std::ofstream(record, std::ios::binary) << mcpplibs::os::fs::generic_utf8(project) << '\n';
150+
return dir;
151+
}
152+
98153
namespace {
99154

100155
std::filesystem::path pkg_root() { return mcpp::home::cache_root() / "pkg"; }
@@ -382,6 +437,42 @@ std::vector<Entry> walk_program_out_entries() {
382437
return out;
383438
}
384439

440+
// The work directories of plans that describe (plan_work_dir): one per
441+
// project and area, each last used when a plan last ran in it. Collected as
442+
// the cache's entries are; like a build program's outputs and the units, the
443+
// one flag of `cache clean` that removes them is `--all`.
444+
std::vector<Entry> walk_plan_entries() {
445+
std::vector<Entry> out;
446+
for (const auto& area : kPlanAreas) {
447+
std::error_code ec;
448+
const auto root = plan_area_root(area);
449+
for (auto& d : std::filesystem::directory_iterator(root, ec)) {
450+
if (!d.is_directory()) continue;
451+
Entry e;
452+
e.dir = d.path();
453+
e.kind = "work";
454+
e.key = mcpplibs::os::fs::generic_utf8(d.path().filename());
455+
const auto record = e.dir / kPlanRecord;
456+
std::string project;
457+
std::error_code fe;
458+
if (std::filesystem::is_regular_file(record, fe)) {
459+
e.accessed = dir_mtime_seconds(record);
460+
if (std::ifstream is(record, std::ios::binary); is) std::getline(is, project);
461+
} else {
462+
// Written by an mcpp before the record: the directory's time is
463+
// the last plan that wrote or removed a file directly in it.
464+
e.accessed = dir_mtime_seconds(e.dir);
465+
}
466+
e.label = project.empty()
467+
? std::format("{} (work directory)", area.command)
468+
: std::format("{} (work directory of {})", area.command, project);
469+
measure(e);
470+
out.push_back(std::move(e));
471+
}
472+
}
473+
return out;
474+
}
475+
385476
// THE UNITS (design 2026-11-20 §5.3): one per compile key and manifest under
386477
// `build-cache/v1/unit/<k>/<key>/<manifest>`, last used when a build last
387478
// placed it (its `manifest.tsv` is touched then).
@@ -417,6 +508,7 @@ std::vector<Entry> walk_collectable() {
417508
for (auto& e : walk_variant_entries()) out.push_back(std::move(e));
418509
for (auto& e : walk_program_out_entries()) out.push_back(std::move(e));
419510
for (auto& e : walk_unit_entries()) out.push_back(std::move(e));
511+
for (auto& e : walk_plan_entries()) out.push_back(std::move(e));
420512
return out;
421513
}
422514

@@ -759,6 +851,15 @@ export int cache_clean(bool deps, bool stds, bool tools, bool all, bool legacy)
759851
std::filesystem::remove_all(tool_root(), ec);
760852
std::println("Cleaned host tool entries ({})", human_bytes(n));
761853
}
854+
if (all) {
855+
// `--all` is every kind `cache list` shows. The three roots above are
856+
// gone; what is left are the kinds no flag names: patched variants, the
857+
// outputs of build programs, the units and the work directories of
858+
// plans (mcpp#969). Before, `--all` left them and stated nothing.
859+
std::uintmax_t n = 0;
860+
for (const auto& e : walk_collectable()) n += remove_entry(e);
861+
std::println("Cleaned the entries of every other kind ({})", human_bytes(n));
862+
}
762863
if (legacy) {
763864
auto legacyRoot = mcpp::home::legacy_bmi_root();
764865
if (std::filesystem::exists(legacyRoot, ec)) {

0 commit comments

Comments
 (0)