Skip to content

doctor validate -b ./ fails on a valid relative path #714

Closed

Description

@drawmeanelephant

Suggested labels: bug, area: cli


Discovery audit finding L3 (low) — cooklang/cookcli @ 7c2f48b (v0.38.1), audited 2026-10-12. Repro verified.

Summary

cook doctor validate -b ./ fails on a valid relative path.

Where

src/doctor.rs:267,309,355 pass raw args.base_path to core (other commands canonicalize in main.rs:122).

Repro

$ cook doctor validate -b .
Error: Cannot search './': cannot express bom.cook relative to it

cook search -b ./ and cook sl -b ./ work.

Expected

-b ./ works like any other valid path.

Actual

A confusing error from the search layer.

Acceptance criteria (red → green)

  • Red: the repro fails with Cannot search './'.
  • Green: the repro validates the recipes in . normally.

Verification

Executed repro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions