zig/doc
Andrew Kelley 0fc7c9f57c switch from "id" to "nonce"
mainly this addresses the following use case:

1. Someone creates a template with build.zig.zon, id field included
   (note that zig init does not create this problem since it generates
   fresh id every time it runs).
2. User A uses the template, changing package name to "example" but not
   id field.
3. User B uses the same template, changing package name also to
   "example", also not changing the id field.

Here, both packages have unintentional conflicting logical ids.

By making the field a combination of name checksum + random id, this
accident is avoided. "nonce" is an OK name for this.

Also relaxes errors on remote packages when using `zig fetch`.
2025-02-26 11:42:03 -08:00
..
langref langref: document modules, root source files, etc 2025-02-22 21:01:44 +00:00
build.zig.zon.md switch from "id" to "nonce" 2025-02-26 11:42:03 -08:00
langref.html.in langref: document modules, root source files, etc 2025-02-22 21:01:44 +00:00