Repository navigation
Closed
Milestone
Description
Actions:
- Using a
stackexecutable from commit 595e9ea rm -f stack.yaml.lock- Run
stack buildin the Stack repo at that same commit - Get some warnings
$ stack build
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
The missing cryptographic hash isn't true: the stack.yaml.loc does in fact include the sha256 and filesize of the tarball. Running stack build a second time generates slightly different warnings:
$ stack build
Warning: /Users/michael/Documents/stack/stack.yaml.lock: Unrecognized fields in UnresolvedPackageLocationImmutable.PLIArchive: cabal-file, name, pantry-tree, version
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
Looks like this might be a bug in the parsing or rendering of a PLIArchive. CC @qrilka
Metadata
Metadata
Assignees
Labels
No labels
Activity
Fix some misplaced parse warnings #4789
Fix some misplaced parse warnings #4789
Get package name from completed information #4789
snoyberg commentedon May 1, 2019
I've opened up a PR (#4790) for the warnings during the parsing. That addresses "unrecognized fields" bit above by using the
Data.Aeson.Extendedmachinery better.I've opened up a second PR (#4791) for the warnings about "without specified cryptographic hash." The issue there was that we were looking up the package name from the raw information, instead of using the completed information.
Once both PRs are merged we can close this issue.
Merge pull request #4790 from commercialhaskell/4789-improved-from-js…
Merge pull request #4791 from commercialhaskell/4789-package-name-fro…
snoyberg commentedon May 2, 2019
Both PRs and merged, closing