Skip to content

fix: bootstrap V on Windows with makev.bat#17

Merged
ulises-jeremias merged 1 commit into
vlang:mainfrom
ulises-jeremias:fix/windows-makev-and-stable-ref
Jun 2, 2026
Merged

fix: bootstrap V on Windows with makev.bat#17
ulises-jeremias merged 1 commit into
vlang:mainfrom
ulises-jeremias:fix/windows-makev-and-stable-ref

Conversation

@ulises-jeremias

Copy link
Copy Markdown
Member

Summary

  • On Windows, bootstrap V with makev.bat -gcc instead of GNU make, matching vlang/v CI and official Windows install docs.
  • Detect v.exe for install checks, rebuilds, version probing, and action outputs.
  • If the install directory exists but the executable is missing (failed prior run), remove it and re-download instead of returning early.
  • Resolve the latest GitHub release when stable: true, even without check-latest: true (fixes confusing behavior documented in The action starts to fail to setup stable version with error: unknown function: help.print_and_exit #3).
  • Add unit tests for executable path resolution and version ref logic.

Fixes #16

Context

This addresses Windows bootstrap failures tracked in #15 (MinGW/POSIX headers when running make on master) and the stable-only scenario used by downstream projects (e.g. VSL/VTL Windows smoke jobs with stable: true + check-latest: true).

Test plan

  • npm run all (build, lint, package, vitest) passes locally
  • CI test-action matrix on ubuntu/windows/macos (check-latest, stable, version scenarios)
  • Check dist workflow passes with updated dist/index.js

Made with Cursor

Align Windows builds with vlang/v CI (makev.bat -gcc instead of GNU make),
detect v.exe, rebuild incomplete install dirs, and resolve stable releases
without requiring check-latest.

Fixes vlang#16

Co-authored-by: Cursor <cursoragent@cursor.com>
@ulises-jeremias ulises-jeremias merged commit 3b63433 into vlang:main Jun 2, 2026
2 checks passed
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.

Windows bootstrap should use makev.bat (align with vlang/v CI)

1 participant