diff --git a/cli/package-lock.json b/cli/package-lock.json index 0f75ee2..994a54d 100644 --- a/cli/package-lock.json +++ b/cli/package-lock.json @@ -4222,8 +4222,8 @@ "dev": true }, "node_modules/vscode-rpgle": { - "version": "0.28.6", - "resolved": "git+ssh://git@github.com/halcyon-tech/vscode-rpgle.git#ee236e39467022ae7a95230a3212c84d0072794f", + "version": "0.31.1", + "resolved": "git+ssh://git@github.com/halcyon-tech/vscode-rpgle.git#93856a5577e7fc9eda00899e6e08999892aaba5e", "dev": true, "hasInstallScript": true, "engines": { diff --git a/cli/src/targets/index.ts b/cli/src/targets/index.ts index 0f5a47f..1b5f8b9 100644 --- a/cli/src/targets/index.ts +++ b/cli/src/targets/index.ts @@ -487,6 +487,11 @@ export class Targets { currentTarget.deps = currentTarget.deps.filter(d => ![`SRVPGM`].includes(d.type)); for (const importName of currentTarget.imports) { + if (currentTarget.exports?.includes(importName.toUpperCase())) { + // This happens when a source copy has the prototype and the implementation (export) + continue; // Don't add imports that are also exports + } + // Find if this import resolves to another object const possibleSrvPgmDep = this.resolvedExports[importName.toUpperCase()]; // We can't add a module as a dependency at this step.