mirror of
https://github.com/ziglang/zig.git
synced 2025-03-14 10:08:32 +00:00
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`.
17 lines
422 B
Zig
17 lines
422 B
Zig
// The Zig compiler is not intended to be consumed as a package.
|
|
// The sole purpose of this manifest file is to test the compiler.
|
|
.{
|
|
.name = .zig,
|
|
.version = "0.0.0",
|
|
.dependencies = .{
|
|
.standalone_test_cases = .{
|
|
.path = "test/standalone",
|
|
},
|
|
.link_test_cases = .{
|
|
.path = "test/link",
|
|
},
|
|
},
|
|
.paths = .{""},
|
|
.nonce = 0xc1ce10810000f013,
|
|
}
|