Docs promise a managed Zig download on every platform; the Windows CLI has no download table at all
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- zig
- Ambito
- build-system
Direzione di ricerca
Start with src/tooling/toolchain.zig, where currentDownload() selects platform entries and install() currently unpacks .tar.xz; inspect the release assets and relevant toolchain tests. Confirm the Windows asset’s format and checksum, then ensure Windows can install the pinned Zig toolchain or update the documented limitation and error message. Done when Windows behavior and the three cited documentation pages agree.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Environment
@native-sdk/cli0.11.1 (win32-x64)- Windows 11, Node 24.22.2, no
zigon PATH, no~/.native/toolchains/
What happens
$ native build shelltest --yes
zig 0.16.0 is required but was not found, and this platform has no
managed toolchain download. Install it from the official Zig
download page, then re-run.
--yes does not help, because the failure is not a consent problem.
Why: the Windows binary is compiled without any Zig download entries
src/tooling/toolchain.zig selects the download table at comptime:
fn currentDownload() ?Download {
return switch (builtin.target.os.tag) {
.macos => switch (builtin.target.cpu.arch) { .aarch64 => ..., .x86_64 => ..., else => null },
.linux => switch (builtin.target.cpu.arch) { .aarch64 => ..., .x86_64 => ..., else => null },
else => null,
};
}
offerInstall turns that null straight into a hard error:
const download = currentDownload() orelse {
// "this platform has no managed toolchain download"
return error.UnsupportedPlatform;
};
I confirmed this is decided at build time, not at runtime, by inspecting the shipped
cli-win32-x64/bin/native.exe:
| needle | occurrences in native.exe |
|---|---|
managed toolchain download |
1 |
zig-aarch64-macos-0.16.0 |
0 |
zig-x86_64-linux-0.16.0 |
0 |
zig-x86_64-windows-0.16.0 |
0 |
The macOS/Linux archive names are dead-code-eliminated on a Windows build, so no
runtime condition could ever reach them. Adding zig-x86_64-windows-0.16.0 to
currentDownload() is the whole fix — the release index already publishes
zig-x86_64-windows-0.16.0.zip (sha256 68659eb5f1e4eb1437a722f1dd889c5a322c9954607f5edcf337bc3684a75a7e,
verified locally). Note install() currently unpacks .tar.xz, so the Windows
entry would need a .zip branch (or point at the .tar.xz asset, which ziglang.org
also ships for Windows).
What the docs say
/docs/quick-start lists the prerequisite as "macOS 14+ or newer, Linux, or Windows",
then, with no platform qualifier:
The Zig toolchain.
native dev|build|testuse the Zig on your PATH when its version
is compatible, and otherwise offer to download the pinned version into
~/.native/toolchains/(checksum-verified; pass--yesto skip the prompt in scripts).
/docs/zig repeats it:
native dev,native build, andnative testuse zig from PATH when its version
matches; otherwise, they offer to download the pinned, checksum-verified version into
~/.native/toolchains/.
/docs/platform-support states "macOS, Linux, and Windows run full desktop apps through
their own platform hosts" and does not flag the toolchain as a Windows gap anywhere on
the page.
Three pages promise the download on a platform where it cannot happen.
Expected
Either (a) ship the Windows entry so --yes works as documented, or (b) if that is
deliberate, document it as a per-platform limitation in the Zig toolchain section and in
the platform-support matrix, and change the message to say "on Windows, install Zig
0.16.0 yourself" rather than implying every platform lacks it.
- Lingua principale
- Zig
- Stelle
- 7.9k
- Fork
- 335
- Merge medio
- 10h 33m
- PR unite (30g)
- 147
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di vercel-labs/native
-
Per-view widget layout budget (1024 nodes) drops whole frames on real multi-pane app viewsForse già presa @slicenferqin l’ha presa 100 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
vercel-labs/native#408 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
vercel-labs/native#387 ·
I maintainer di solito rispondono entro 1 giorno
-
macOS: the window frame event reports the frame size where everything else expects the content sizeAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
vercel-labs/native#355 ·
I maintainer di solito rispondono entro 1 giorno
-
cef.zig: InstallResult.archive_path leaks on successForse già presa @versecafe l’ha presa 206 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
vercel-labs/native#32 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
vercel-labs/native#957 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di vercel-labs/native
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
avaje/avaje-metrics#142 ·
-
enhancement github_actions good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 94/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
bazelbuild/apple_support#707 ·
I maintainer di solito rispondono entro 1 giorno
-
Security gate is red on mainApertasecurity
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
nimbus-agent/Nimbus#2319 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
nextjournal/clerk#830 ·