Skip to content

Release: support multiple local adaptor repos#1438

Merged
josephjclark merged 4 commits into
mainfrom
multi-adaptor-repos
Jun 2, 2026
Merged

Release: support multiple local adaptor repos#1438
josephjclark merged 4 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

josephjclark commented Jun 1, 2026

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

EDIT: Yep, all finger trouble at my end. Works great!

@josephjclark josephjclark merged commit 766b344 into main Jun 2, 2026
7 checks passed
@github-project-automation github-project-automation Bot moved this from New Issues to Done in Core Jun 2, 2026
@josephjclark josephjclark deleted the multi-adaptor-repos branch June 2, 2026 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants