Bug: FindExtraFiles reports manifest file and dotfiles as extra #16
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In both
mfer/checker.goandinternal/checker/checker.go,FindExtraFileswalks the entire directory tree and reports any file not in the manifest as "extra". However, it does not:index.mfor.index.mf) — the manifest is never included in its own file list, so it will always be reported as extra.--include-dotfiles(the default), dotfiles are excluded from the manifest.FindExtraFileswill then report all dotfiles as extra, producing noisy false positives.This makes
mfer check --no-extra-filespractically unusable in normal scenarios, as it will almost always fail due to the manifest file being reported as extra.Fix:
FindExtraFiles(or the CLI check command) should skip the manifest file itself, and ideally respect the same dotfile filtering that was used during generation.