vlang / vlang/setup-v

dist/index.js is stale: prebuilt-binary support in src/ was never shipped

Open Beginner friendly
#97 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
33
Forks
5
Avg merge
1d 21h
Merged PRs (30d)
9

Description

Summary

src/ installs prebuilt V binaries for tagged versions (downloadPrebuilt in src/github-api-helper.ts, added in 12a9fab), but the shipped dist/index.js — what actually runs — contains zero references to prebuilt logic (verified at both 2af0f76 and 1cb8013: grep -c prebuilt dist/index.js → 0). So every cold-cache run falls back to building V from source.

Impact

Upstream source builds are currently broken by vc/V skew (make fresh_vc clones floating vc under a fixed V source: C.open redefinition today, vlib/v3 type errors earlier), so all consumers without a warm GHA cache are red with no workaround short of vendoring the install. Rebuilding + releasing dist would unblock everyone and make version/version-file + stable resolve to the checksummed prebuilt assets as designed.

Environment

  • Action refs checked: 2af0f76cef8d32cea291b7ee9a259c37336a6441, 1cb8013ba
  • Consumer evidence: Create-Vlang-App/cva-templates (cold cache → source build → failure in Set up V); Create-Vlang-App/create-vlang-app (warm cache → green on identical inputs)

Thanks for the prebuilt feature — just needs a dist rebuild to reach users.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/github-api-helper.ts, especially downloadPrebuilt, and compare its prebuilt handling with the shipped dist/index.js. Rebuild the distribution and verify that dist/index.js contains the prebuilt logic so tagged-version installs use the checksummed assets instead of the source build.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, typescript
Domain
ci-cd
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.