Skip to content

Commit

Permalink
engine: don't try to autoinstall adaptors with an explicit path
Browse files Browse the repository at this point in the history
  • Loading branch information
josephjclark committed Oct 28, 2024
1 parent 7d0f8b9 commit 2232261
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/wise-drinks-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@openfn/engine-multi': patch
---

Engine: don't try to autoinstall adaptor versions with an explicit path
4 changes: 4 additions & 0 deletions packages/engine-multi/src/api/autoinstall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ const autoinstall = async (context: ExecutionContext): Promise<ModulePaths> => {
) => {
// Check whether we still need to do any work
for (const a of adaptors) {
if (a.match('=')) {
// Ignore adaptors with explicit paths (ie monorepo @local)
continue;
}
const { name, version } = getNameAndVersion(a);
if (await isInstalledFn(a, repoDir, logger)) {
continue;
Expand Down

0 comments on commit 2232261

Please sign in to comment.