Skip to content

fix(docker): install fd from upstream so agent find tool works#56

Merged
Anton-Horn merged 1 commit into
mainfrom
fix/fd-version-upstream
Jun 9, 2026
Merged

fix(docker): install fd from upstream so agent find tool works#56
Anton-Horn merged 1 commit into
mainfrom
fix/fd-version-upstream

Conversation

@Anton-Horn

Copy link
Copy Markdown
Contributor

Problem

The agent's `find` tool (Pi runtime, invoked via the `zero` CLI) shells out to `fd`/`fdfind` with `--no-require-git`. Every call failed:

```
error: Found argument '--no-require-git' which wasn't expected, or isn't valid in this context
```

`--no-require-git` was added in fd 9.0. The image installs `fd-find` from apt, and `node:22-slim` is Debian bookworm, which pins `fd-find` at 8.7.0 — too old to know the flag. So argument parsing bailed before any search ran.

Fix

  • Drop `fd-find` from the apt list.
  • Install upstream fd 10.2.0, arch-aware via BuildKit's `TARGETARCH` (amd64 + arm64).
  • Expose both `fd` and `fdfind` names so either invocation resolves.
  • Run `fd --version` at build time as a smoke check so a broken download fails the build loudly.

Requires image rebuild + redeploy to take effect.

🤖 Generated with Claude Code

Debian bookworm pins fd-find at 8.7.0, which predates the
--no-require-git flag the agent's find tool passes (added in fd 9.0).
Every find call failed at argument parsing. Replace the apt fd-find
package with an arch-aware install of upstream fd 10.2.0, exposing both
fd and fdfind names, with a build-time --version smoke check.
@Anton-Horn Anton-Horn merged commit c3e0ccb into main Jun 9, 2026
1 check passed
@Anton-Horn Anton-Horn deleted the fix/fd-version-upstream branch June 9, 2026 09:35
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.

1 participant