Commit efad04e
authored
Fix
* Fix `index-sha256` bit rot
If an new package is deployed to `hackage.haskell.org`, to use it before it is captured by the `hackage.nix` update add the following to the project arguments:
```nix
index-state="2025-06-16T00:00:00Z"; # Use current time here
# This hash in not valid, the error message will give the correct hash
index-sha256="sha256-NS28jJYko/tNUKVhncntu/mV8tsQmTA52T000000000=";
```
This change PR fixes some "bit rot" issues:
* A warning about `--index-state` argument being out of range is now an error.
* The sha256 might now be in base16 or base32.
* Add comment
* Doc change to trigger hydra CI
* Fix cross compilation shells
* Use hackage.nix/index-state.nix
* Support for older hackage.nix versionsindex-sha256 bit rot (#2390)1 parent bd2866b commit efad04e
File tree
3 files changed
+7
-5
lines changed- docs/reference
- lib
- mk-local-hackage-repo
3 files changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
277 | | - | |
| 276 | + | |
| 277 | + | |
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
678 | 678 | | |
679 | 679 | | |
680 | 680 | | |
681 | | - | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
682 | 684 | | |
683 | 685 | | |
684 | 686 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
0 commit comments