-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
breakingImplementing this issue could cause existing code to no longer compile or have different behavior.Implementing this issue could cause existing code to no longer compile or have different behavior.enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.zig build systemstd.Build, the build runner, `zig build` subcommand, package managementstd.Build, the build runner, `zig build` subcommand, package management
Milestone
Description
Extracted from #14265.
Currently the build.zig.ini file uses:
hash=c9b30cffc40999d2c078ff350cbcee642970a224fe123c756d0892f876cf1aae
This is a SHA-256 hex-encoded digest. This proposal is to change it to:
hash.digest=c9b30cffc40999d2c078ff350cbcee642970a224fe123c756d0892f876cf1aae
hash.function=sha256
Or perhaps:
hash=sha256=c9b30cffc40999d2c078ff350cbcee642970a224fe123c756d0892f876cf1aae
Idea being to leave room for an upgrade to a different hash function in the future.
The second form may be preferred in order to ease copy+pasting from an error message, and so that diffs of hashes are only one line each.
Another possible syntax would be to use _
instead of =
which would allow hashes to be used as field names in #14290 without use of @""
syntax.
nektro, likern and maxmilton
Metadata
Metadata
Assignees
Labels
breakingImplementing this issue could cause existing code to no longer compile or have different behavior.Implementing this issue could cause existing code to no longer compile or have different behavior.enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.zig build systemstd.Build, the build runner, `zig build` subcommand, package managementstd.Build, the build runner, `zig build` subcommand, package management
Type
Projects
Status
Urgent Enhancements