Skip to content
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

Hash and file size should not be mandatory in extra-deps #4887

Closed
neilmayhew opened this issue Jun 19, 2019 · 1 comment
Closed

Hash and file size should not be mandatory in extra-deps #4887

neilmayhew opened this issue Jun 19, 2019 · 1 comment
Assignees

Comments

@neilmayhew
Copy link

General summary

Stack 2.1.1 gives a warning for any extra-deps that don't have both a hash and a file size.

Steps to reproduce

$ stack new extra-deps --no-nix
$ cd extra-deps
$ cat >>stack.yaml <<EOF
> extra-deps:
> - github: snoyberg/filelock
>   commit: 97e83ecc133cd60a99df8e1fa5a3c2739ad007dc
> EOF
$ stack build

Expected

No warnings.

Actual

$ stack build --verbose
Using archive from https://github.com/snoyberg/filelock/archive/97e83ecc133cd60a99df8e1fa5a3c2739ad007dc.tar.gz without a specified cryptographic hash
Cached hash is 78332e0d964cb2f24fdbb6b07c2a6a84a029c4fe540a0435993c85ad58eab051, file size 9526
For security and reproducibility, please add a hash and file size to your configuration
Using archive from https://github.com/snoyberg/filelock/archive/97e83ecc133cd60a99df8e1fa5a3c2739ad007dc.tar.gz without a specified cryptographic hash
Cached hash is 78332e0d964cb2f24fdbb6b07c2a6a84a029c4fe540a0435993c85ad58eab051, file size 9526
For security and reproducibility, please add a hash and file size to your configuration

Stack version

$ stack --version
Version 2.1.1, Git revision f612ea85316bbc327a64e4ad8d9f0b150dc12d4b (7648 commits) x86_64 hpack-0.31.2

Method of installation

  • Official binary, downloaded from stackage.org or fpcomplete's package repository
    (stack-2.1.1-linux-x86_64-static.tar.gz)
@snoyberg
Copy link
Contributor

Resolved by #4912

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

No branches or pull requests

4 participants