Hashing and Manifest

Summary: Hashes the artifacts and adds the information to a manifest. This will then be used to upload to a blob store, and save the information so it can be retrieved again later. Not sure if I want to stick with SHA256 or if there's something more efficient like Cityhash, given that we don't really care about cryptographic properties here.

Reviewed By: jknoxville

Differential Revision: D21380369

fbshipit-source-id: e9c5cd56d94f3083ae5ed6396673d00cbf98ce39
This commit is contained in:
Pascal Hartig
2020-05-07 07:20:29 -07:00
committed by Facebook GitHub Bot
parent 5ccc392135
commit 5cc9af4b5d
4 changed files with 296 additions and 25 deletions

View File

@@ -11,3 +11,9 @@ tar = "0.4.26"
serde = { version = "1.0.106", features = ["derive"] }
serde_yaml = "0.8.11"
anyhow = "1.0.28"
sha2 = "0.8.1"
data-encoding = "2.2.0"
serde_json = "1.0.52"
[dev-dependencies]
tempdir = "0.3.7"