Skip to content

fix: stop listing macOS ._ files as recipes - #557

Merged
dubadub merged 1 commit into
mainfrom
fix/skip-hidden-recipe-files
Sep 27, 2026
Merged

dubadub merged 1 commit into
mainfrom
fix/skip-hidden-recipe-files

Conversation

@dubadub

@dubadub dubadub commented Sep 27, 2026

Copy link
Copy Markdown
Member

Fixes #555.

Cause

cooklang-find 0.7.1 started reading non-UTF-8 files lossily (for #498). macOS AppleDouble ._<name>.cook companions had always matched **/*.cook. They only stayed hidden because their binary content failed the UTF-8 read, so after that change they appeared in the web UI as recipes.

Changes

  • cooklang-find 0.7 → 0.8.1 (cooklang-find#16): recipe discovery no longer matches dotfiles or descends into hidden directories (.git, .Trashes, …). A collection under a hidden base path such as ~/.recipes still works. This covers the server's recipe tree, search, and menus.
  • shopping-list <dir>: this command lists the directory itself rather than going through cooklang-find, so it now skips hidden entries as well. It has a new regression test in tests/shopping_list_test.rs, which failed before the fix.

Verification

  • cargo fmt, cargo clippy --all-targets and cargo test are all clean.
  • Manual run: cook search over a directory containing soup.cook, ._soup.cook and .git/old.cook returns only soup.cook.

On a collection shared over Samba, macOS writes AppleDouble `._<name>`
companions next to every file it touches. They end in `.cook` but are
binary resource forks, and since 0.37 the web UI listed each one as a
recipe, sorted ahead of the real files.

Bump cooklang-find to 0.8.1, whose walks no longer match dotfiles or
descend into hidden directories. `shopping-list <dir>` lists the
directory itself rather than going through cooklang-find, so skip
hidden entries there too.

Fixes #555
@dubadub
dubadub merged commit 87c4f7b into main Sep 27, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Server displays MacOSX ._ files as well as recipe files

1 participant