Skip to content

fix(release): pass desktop build flags without the -- separator - #193

Merged
badcuban merged 1 commit into
mainfrom
fix/release-vp-0.3-script-args
Aug 28, 2026
Merged

fix(release): pass desktop build flags without the -- separator#193
badcuban merged 1 commit into
mainfrom
fix/release-vp-0.3-script-args

Conversation

@badcuban

Copy link
Copy Markdown
Collaborator

The nightly desktop release on 91e3635 failed in all three builds with Unexpected positional arguments: "--platform", "linux", ....

Cause: vite-plus 0.3.0 (from #191) forwards a literal -- to the script instead of consuming it. scripts/build-desktop-artifact.ts parses flags with the effect CLI, which treats -- as the end of flags, so every flag after it became a positional argument.

Fix: drop the -- separator in release.yml (Windows, macOS, Linux build steps) and desktop-smoke.yml. No other workflow forwards script args this way.

Verified locally with vp 0.3.0: vp exec vp run dist:desktop:artifact --platform bogus --target nsis now fails inside the script with Invalid value for flag --platform: "bogus", i.e. the flags arrive. With the -- it reproduces the CI error.

vite-plus 0.3.0 (bumped in #191) forwards a literal "--" to the script
instead of consuming it. The build script parses its flags with the
effect CLI, which reads "--" as the end of flags, so every flag after it
became an unexpected positional argument and all three nightly desktop
builds failed on the first run after the bump.

Drop the separator in the release and smoke workflows. Verified locally
with vp 0.3.0: "vp exec vp run dist:desktop:artifact --platform bogus"
now reaches the script's own validation.
@vercel

vercel Bot commented Aug 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
threadlines Ready Ready Preview Aug 28, 2026 5:30am

Request Review

@github-actions github-actions Bot added size:XS vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Aug 28, 2026
@badcuban
badcuban merged commit 37d248a into main Aug 28, 2026
14 checks passed
@badcuban
badcuban deleted the fix/release-vp-0.3-script-args branch August 28, 2026 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant