Skip to content

Fix index-sha256 bit rot #2390

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Fix index-sha256 bit rot #2390

wants to merge 4 commits into from

Conversation

hamishmack
Copy link
Collaborator

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:

  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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant