aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-02-25 17:26:19 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-02-26 11:42:03 -0800
commit0fc7c9f57c0042cfe6dab9deb3b5fe2f9404d744 (patch)
treef554469401cd9df8a762a098dc0091a79e0caf7d /src/Compilation.zig
parenta70307e7ffc608643bbd940796eaeb5bca6bbc8f (diff)
downloadzig-0fc7c9f57c0042cfe6dab9deb3b5fe2f9404d744.tar.gz
zig-0fc7c9f57c0042cfe6dab9deb3b5fe2f9404d744.zip
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`.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions