Repository navigation
Settled file: directory deps keep a stale store copy when the source tree changes (warm-path "Already up to date")
#1030
SummaryAfter a workspace install has settled, aube keys and freezes This is distinct from #1018 (plain unified patch headers) and #1029 How the state arises
We hit this on aube 1.26.0 with a real monorepo: after adding a Store key (from aube source)
// comment in source.rs:
// "we hash the raw path bytes and suffix the first 16 hex chars"
// ...
_ => hasher.update(self.path_posix().as_bytes()),
// ...
format!("{name}@{}+{short}", self.kind_str())So the key is stable for a given path forever. Changing files under that Separately, Steps to reproducegit clone https://github.com/mwolson/tmp-aube-issues
cd tmp-aube-issues/pnpm-file-dep-stale-store
PNPM_BIN=/path/to/real/pnpm-11.11.0 ./repro.shThe script:
Exit 0 means aube refreshed; exit 1 means the issue was observed. Observed matrix on this machine:
Expected behaviorA plain Workaroundrm -rf node_modules/.aube/@scope+pkg@file+*
# or more broadly:
# rm -rf node_modules/.aube/*@file+*
aube install |
Replies: 2 comments
|
Thanks for the detailed report and repro — the diagnosis was correct. The fix is in #1034. The dependency identity stays path-based, but aube now records a deterministic content fingerprint for copied This comment was generated by Codex. |
|
Retested with aube
Fix shipped in aube 1.28.0 via #1034. Marking the maintainer reply as the answer. |
Thanks for the detailed report and repro — the diagnosis was correct. The fix is in #1034.
The dependency identity stays path-based, but aube now records a deterministic content fingerprint for copied
file:directories (and portals), checks it before taking the warm "Already up to date" path, and replaces the existing path-keyed.aubematerialization during the resulting full install. The regression test uses the same equal-sizev1→v2mutation and verifies the installed copy refreshes.This comment was generated by Codex.