Skip to content

Automatically generate cache for stackage projects #397

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 16 commits into from
Jan 14, 2020

Conversation

hamishmack
Copy link
Collaborator

This is an updated version of #358 that uses input-output-hk/nix-tools#72 for parsing stack.yaml and extracting the cabal package name. It also supports adding the nix hash as a comment to stack.yaml (this should make passing a manual cache argument unnecessary).

@yorickvP
Copy link
Contributor

Does this require the nix-hash comment?

@hamishmack
Copy link
Collaborator Author

Does this require the nix-hash comment?

No the # nix-sha256: comment should only be needed if we want
the stackProject to work in nix restricted mode and we can still pass
a cache argument to stackProject instead if we prefer.

If the # nix-sha256: comment is not present and no cache argument is
passed this PR should behave the same as #358 did (except it will not
output a trace message suggesting a cache argument).

@hamishmack hamishmack requested a review from angerman January 14, 2020 02:19
Copy link
Collaborator

@angerman angerman left a comment

Choose a reason for hiding this comment

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

This looks good to me. I'd like @yorickvP's input on this as well before we merge this.

Copy link
Contributor

@yorickvP yorickvP left a comment

Choose a reason for hiding this comment

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

🚢

@hamishmack hamishmack merged commit 8e52ad6 into master Jan 14, 2020
@hamishmack hamishmack deleted the hkm/auto-generate-cache branch January 14, 2020 21:34
fiadliel added a commit to EarnestResearch/er-nix that referenced this pull request Jan 15, 2020
This pulls in input-output-hk/haskell.nix#397
(automatically generate cache for stackage projects).
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.

4 participants