[GH-ISSUE #2740] Bug: 'set:oss' npm script fails on Windows environments #8993

Closed
opened 2026-04-30 05:11:07 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @Adarsh-Raj-Jaiswal on GitHub (Mar 30, 2026).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/2740

Describe the Bug

When setting up the project locally on a Windows machine using the standard Command Prompt or PowerShell, the set:oss script in package.json fails to execute.

The script currently relies on Unix-specific syntax (single quotes for string escaping and the cp command), which causes Windows to misinterpret the pipe (|) character as a command pipe rather than a string literal.

Environment

  • OS Type & Version: Windows 11
  • Pangolin Version: v1.16.2
  • Gerbil Version: 1.3.0
  • Traefik Version: 3.6
  • Newt Version: 1.10.3
  • Olm Version: (if applicable)

To Reproduce

Clone the repository on a Windows machine.

Open Windows Command Prompt or PowerShell.

Run npm run set:oss or yarn set:oss.

Expected Behavior

The set:oss script should execute successfully on any operating system (including Windows natively via Command Prompt or PowerShell). It should generate the server/build.ts file containing export const build = "oss" as "saas" | "enterprise" | "oss"; and successfully copy tsconfig.oss.json to tsconfig.json without throwing syntax or unrecognized command errors.

Originally created by @Adarsh-Raj-Jaiswal on GitHub (Mar 30, 2026). Original GitHub issue: https://github.com/fosrl/pangolin/issues/2740 ### Describe the Bug When setting up the project locally on a Windows machine using the standard Command Prompt or PowerShell, the set:oss script in package.json fails to execute. The script currently relies on Unix-specific syntax (single quotes for string escaping and the cp command), which causes Windows to misinterpret the pipe (|) character as a command pipe rather than a string literal. ### Environment - OS Type & Version: Windows 11 - Pangolin Version: v1.16.2 - Gerbil Version: 1.3.0 - Traefik Version: 3.6 - Newt Version: 1.10.3 - Olm Version: (if applicable) ### To Reproduce Clone the repository on a Windows machine. Open Windows Command Prompt or PowerShell. Run npm run set:oss or yarn set:oss. ### Expected Behavior The set:oss script should execute successfully on any operating system (including Windows natively via Command Prompt or PowerShell). It should generate the server/build.ts file containing export const build = "oss" as "saas" | "enterprise" | "oss"; and successfully copy tsconfig.oss.json to tsconfig.json without throwing syntax or unrecognized command errors.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#8993