Skip to content

WrapReceiver does not expose WalkTree — callback params unsupported #170

Closed

Description

@David-Noble-at-work

WalkTree is not included in the file provider's Params map because it takes a Starlark callable (fn) as a parameter. The params generator cannot handle callback/function parameters.

TestImmediateBindings fails with file has no .walk_tree attribute.

The old hand-coded receiver had a custom implementation for walk_tree that accepted a Starlark callable, invoked it per entry, and threaded an accumulator. With WrapReceiver, methods with callable params need an Override or the reflection bridge needs to support starlark.Callable as a parameter type.

Branch: feature/binding-unification

Activity

  1. David-Noble-at-work commented on Mar 11, 2026

    @David-Noble-at-work
    ContributorAuthor

    Resolved. Callable parameter support added to the reflection bridge via buildCallableFunc in pkg/op/receiver_reflect.go. WalkTree is registered in the file provider Params map with {"root?", "fn", "honor_gitignore?"} and works in planned mode.

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