-
Notifications
You must be signed in to change notification settings - Fork 841
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
Warnings when parsing lock file #4789
Comments
Instead of FromJSON instances for Repo and PackageMetadata, use the Data.Aeson.Extended mechanisms to properly track which fields are used.
The completed package information already contains the package name, bypassing the need for a package completion call if the cache (lock file) already contains that information. This bypasses a spurious warning about lacking cryptographic hashes, and likely improves performance, for the repo and archive cases. This wasn't discovered initially because the Hackage use case never had an overhead: the specification of a RPLIHackage already contains the package name in all cases.
I've opened up a PR (#4790) for the warnings during the parsing. That addresses "unrecognized fields" bit above by using the 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. |
…on-instances Fix some misplaced parse warnings #4789
…m-completed Get package name from completed information #4789
Both PRs and merged, closing |
Actions:
stack
executable from commit 595e9earm -f stack.yaml.lock
stack build
in the Stack repo at that same commitThe missing cryptographic hash isn't true: the
stack.yaml.loc
does in fact include thesha256
and filesize of the tarball. Runningstack build
a second time generates slightly different warnings:Looks like this might be a bug in the parsing or rendering of a
PLIArchive
. CC @qrilkaThe text was updated successfully, but these errors were encountered: