Add url
,checksums
and metadata
to JSON report.
#2791
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds the
url
,metadata
andchecksums
to the JSON report produced viafetch
.Note that the checksums are the downloaded ones, not calculated from the artifacts. This is to allow a follow-up PR for #1223.
Fixes part of #1487.
There are a few outstanding issues:
parseChecksumRaw
Since the metadata files can reference parents (seecom.twitter::hpack
), it is currently not sufficient to recreate the coursier cache just from the JSON file, since theArtifact
returned by the resolution does not contain the parent. Any ideas/pointers to solve this would be appreciated.Ideally I'd like to add the metadata files and the associated hashes so I can recreate the coursier cache within a sandbox, which would allow downstream build tools such assbt
ormill
to build in a sandboxed environment, but that can be done in a follow up PR.