Skip to content

fix(cli): error clearly when no main package is present - #189

Open
Pragati5-DEBUG wants to merge 1 commit into
DevanshuTripathi:mainfrom
Pragati5-DEBUG:fix/cli-detect-main-package
Open

fix(cli): error clearly when no main package is present#189
Pragati5-DEBUG wants to merge 1 commit into
DevanshuTripathi:mainfrom
Pragati5-DEBUG:fix/cli-detect-main-package

Conversation

@Pragati5-DEBUG

Copy link
Copy Markdown

Summary

Detect when the current directory has no main package before vodka / vodka run dev builds and runs
Exit with a clear error instead of writing a non-executable tmp/vodka-build.exe that Windows rejects with “This version of %1 is not compatible…”

Why

Running the CLI inside the framework repo (a library, not an app) made go build -o … . produce an archive named .exe. Trying to execute it failed with a confusing OS error.

Test plan

In the framework repo: vodka prints the new message and exits with code 1

In a project from vodka create: vodka still builds and runs

vodka run dev in a fullstack app still starts Vite + backend
Screenshot 2026-07-11 234652

After the fix

Screenshot 2026-07-11 235112

@vercel

vercel Bot commented Jul 11, 2026

Copy link
Copy Markdown

@Pragati5-DEBUG is attempting to deploy a commit to the Devanshu Tripathi's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant