Skip to content

Flag-less graphify extract ignores persisted --exclude patterns #2027

Closed

Description

@oleksii-tumanov

Description

graphify extract saves --exclude patterns in graphify-out/.graphify_build.json, but a later direct extract without the flag does not reuse them. The previously excluded files can therefore return to the graph even though the saved configuration still contains the pattern.

This is a follow-up to #1886: that fix covered update/watch/hook rebuilds, while repeated direct extraction still passes only the current CLI values to detection.

Reproduction

Given app.py and vendor/lib.py:

graphify extract . --code-only --no-cluster --exclude vendor
graphify extract . --code-only --no-cluster

On current v8 (edec9eab), the first run saves {"excludes": ["vendor"]} and omits vendor/lib.py. The second run can add vendor/lib.py back while the sidecar remains unchanged.

Expected behavior

When --exclude is omitted, direct extraction should reuse the saved patterns. An explicit new --exclude value should replace the saved list.

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