Skip to content

Release: support multiple local adaptor repos#1438

Open
josephjclark wants to merge 3 commits into
mainfrom
multi-adaptor-repos
Open

Release: support multiple local adaptor repos#1438
josephjclark wants to merge 3 commits into
mainfrom
multi-adaptor-repos

Conversation

@josephjclark
Copy link
Copy Markdown
Collaborator

Release branch for #1397

Includes CLI support too

* feat(ws-worker): support multi-root @Local adaptor resolution

OPENFN_ADAPTORS_REPO (and the --monorepo-dir / -m flag) now accept a
colon-separated list of monorepo roots. When a job pins an adaptor to
@Local, the worker walks the configured roots in order and resolves to
the first root whose `packages/<shortName>/package.json` exists. This
matches Lightning's AdaptorRegistry precedence so the registry view and
the worker's execution path agree on which root supplies a given
adaptor.

Single-path values keep behaving exactly as before. When no root
contains the adaptor the worker still surfaces a candidate path under
the first root, so the runtime emits a clean "missing adaptor" error
rather than crashing on a malformed colon-joined string.

This unblocks the multi-root flow on the Lightning side, where the
AdaptorRegistry already accepts the colon-separated form but the worker
was rejecting it with ENOENT on @Local execution.

* fix(ws-worker): use comma to separate multi-root adaptor paths

Colon collides with Windows drive letters (c:/repo); comma matches
Lightning's parsing of OPENFN_ADAPTORS_REPO. Single-path callers are
unchanged.
@github-project-automation github-project-automation Bot moved this to New Issues in Core Jun 1, 2026
@josephjclark
Copy link
Copy Markdown
Collaborator Author

having a hard time getting this to run locally in lighting. CLI was fine. Probably just finger trouble but I've run out of time today

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

Labels

None yet

Projects

Status: New Issues

Development

Successfully merging this pull request may close these issues.

3 participants