Skip to content

fix: relocate akto and zscaler plugins into src/plugins/ (Linux build fix)#1661

Open
stochastic-sisyphus wants to merge 1 commit into
Portkey-AI:2.0.0from
stochastic-sisyphus:fix/relocate-akto-zscaler-plugins
Open

fix: relocate akto and zscaler plugins into src/plugins/ (Linux build fix)#1661
stochastic-sisyphus wants to merge 1 commit into
Portkey-AI:2.0.0from
stochastic-sisyphus:fix/relocate-akto-zscaler-plugins

Conversation

@stochastic-sisyphus
Copy link
Copy Markdown

Summary

  • Moves plugins/akto/src/plugins/akto/
  • Moves plugins/zscaler/src/plugins/zscaler/
  • Removes the now-empty root plugins/ directory.

Why

PRs #1548 (akto) and #1514 (zscaler) were merged with their plugin
directories at repo-root plugins/ instead of src/plugins/, where
every other plugin lives and where src/plugins/index.ts imports
them from (lines 73-74):

import { handler as aktoScan } from './akto/scan';
import { handler as zscalerGuardrails } from './zscaler/zscalerprotect';

Linux Docker builds of branch 2.0.0 fail at npm run build with:

RollupError: Could not resolve "./akto/scan" from "src/plugins/index.ts"
RollupError: Could not resolve "./zscaler/zscalerprotect" from "src/plugins/index.ts"

Test plan

  • docker build -t portkeyai/gateway:2.0.0 . succeeds on Linux (verified locally after combining with sibling PR for realtimeLLMEventParser case rename).

PR Portkey-AI#1548 (akto) and PR Portkey-AI#1514 (zscaler) placed their plugin
directories at repo-root plugins/ instead of src/plugins/, where
every other plugin lives and where src/plugins/index.ts imports
them from:

  import { handler as aktoScan } from './akto/scan';
  import { handler as zscalerGuardrails } from './zscaler/zscalerprotect';

Linux Docker builds fail with:
  RollupError: Could not resolve "./akto/scan" from "src/plugins/index.ts"

Move both plugin directories under src/plugins/ to match the
existing layout and unblock self-hosted Linux builds.
Copilot AI review requested due to automatic review settings May 20, 2026 03:17
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants