@@ -19,16 +19,17 @@ The store path info JSON format has been updated from version 1 to version 2:
1919 Content address is now a structured JSON object instead of a string:
2020
2121 - Old: ` "ca": "fixed:r:sha256:1abc..." `
22- - New: ` "ca": {"method": "nar", "hash": {"algorithm": "sha256", "format": "base64 ", "hash": "EMIJ+giQ ..."}} `
22+ - New: ` "ca": {"method": "nar", "hash": {"algorithm": "sha256", "format": "base16 ", "hash": "10c209fa ..."}} `
2323 - Still ` null ` values for input-addressed store objects
2424
2525- ** Structured hash fields** :
2626
2727 Hash values (` narHash ` and ` downloadHash ` ) are now structured JSON objects instead of strings:
2828
2929 - Old: ` "narHash": "sha256:FePFYIlMuycIXPZbWi7LGEiMmZSX9FMbaQenWBzm1Sc=" `
30- - New: ` "narHash": {"algorithm": "sha256", "format": "base64 ", "hash": "FePFYIlM ..."} `
30+ - New: ` "narHash": {"algorithm": "sha256", "format": "base16 ", "hash": "15e3c5608946 ..."} `
3131 - Same structure applies to ` downloadHash ` in NAR info contexts
32+ - The ` format ` field is always ` "base16" ` (hexadecimal)
3233
3334Nix currently only produces, and doesn't consume this format.
3435
@@ -48,8 +49,8 @@ The derivation JSON format has been updated from version 3 to version 4:
4849- ** Consistent content addresses** :
4950
5051 Floating content-addressed outputs now use structured JSON format.
51- This is the same format as ` ca ` in in store path info (after the new version).
52+ This is the same format as ` ca ` in store path info (after the new version).
5253
5354Version 3 and earlier formats are * not* accepted when reading.
5455
55- ** Affected command** : ` nix derivation ` , namely it's ` show ` and ` add ` sub-commands.
56+ ** Affected command** : ` nix derivation ` , namely its ` show ` and ` add ` sub-commands.
0 commit comments