Skip to content

Run the nightly scripts to also update the index-state-hashes #146

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

Merged
merged 5 commits into from
Jun 8, 2019

Conversation

angerman
Copy link
Collaborator

This moves the index-state-hashes to hackage.nix as well. Thus
we need to have a least one hackage.nix update in.

This moves the index-state-hashes to `hackage.nix` as well.  Thus
we need to have a least one hackage.nix update in.
@angerman angerman requested a review from rvl May 24, 2019 08:48
@rvl
Copy link
Contributor

rvl commented May 24, 2019

It looks like it will work!

I find the bash script in update-index-state-hashes.nix is quite hard to understand. Could it be done in Haskell instead?

@angerman
Copy link
Collaborator Author

It looks like it will work!

I find the bash script in update-index-state-hashes.nix is quite hard to understand. Could it be done in Haskell instead?

I've added quite a bit of comments. I hope that makes the script easier to understand. I like that we have almost zero dependencies for bash usage. I'm not sure a haskell script would be much more readable either :(

@angerman angerman merged commit 03fd50f into master Jun 8, 2019
@angerman angerman deleted the angerman/nightly-index-state-update branch June 8, 2019 07:21
@rvl rvl mentioned this pull request Jun 15, 2019
@@ -20,6 +20,10 @@ import ./update-external.nix args {

hackage-to-nix hackage.nix

echo "Running update-index-state-hashes..."

${update-index-state-hashes}/bin/update-index-state-hashes > ./index-state-hashes.nix
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be called after cd-ing into hackage.nix? As it is it looks like it won't modify the copy in hackage.nix. And indeed the file hasn't been modified in hackage.nix in some time.

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.

3 participants