diff options
author | Vincent Ambo <tazjin@google.com> | 2019-10-03T11·09+0100 |
---|---|---|
committer | Vincent Ambo <github@tazj.in> | 2019-10-03T12·21+0100 |
commit | f6b40ed6c78a69dd417bd9e0f64a207904755af4 (patch) | |
tree | 164ec793ee5527624b65540075f0a50ec3672066 /tools/nixery/server/manifest/manifest.go | |
parent | 355fe3f5ec05c3c698ea3ba21a5d57454daeceef (diff) |
refactor(server): Cache manifest entries for layer builds
MD5 hash checking is no longer performed by Nixery (it does not seem to be necessary), hence the layer cache now only keeps the SHA256 hash and size in the form of the manifest entry. This makes it possible to restructure the builder code to perform cache-fetching and cache-populating for layers in the same place.
Diffstat (limited to 'tools/nixery/server/manifest/manifest.go')
-rw-r--r-- | tools/nixery/server/manifest/manifest.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/nixery/server/manifest/manifest.go b/tools/nixery/server/manifest/manifest.go index dd447796cc78..61d280a7fbab 100644 --- a/tools/nixery/server/manifest/manifest.go +++ b/tools/nixery/server/manifest/manifest.go @@ -25,7 +25,7 @@ const ( ) type Entry struct { - MediaType string `json:"mediaType"` + MediaType string `json:"mediaType,omitempty"` Size int64 `json:"size"` Digest string `json:"digest"` } |