diff --git a/hocker.cabal b/hocker.cabal index 2645243..5568062 100644 --- a/hocker.cabal +++ b/hocker.cabal @@ -36,6 +36,9 @@ extra-source-files: README.md CHANGELOG.md +data-dir: + test/data + source-repository head type: git location: https://github.com/awakesecurity/hocker.git diff --git a/src/Network/Wreq/Docker/Image.hs b/src/Network/Wreq/Docker/Image.hs index 413b352..8a68c19 100644 --- a/src/Network/Wreq/Docker/Image.hs +++ b/src/Network/Wreq/Docker/Image.hs @@ -111,7 +111,7 @@ fetchLayer = writeC <- liftIO $ getConcurrentOutputter liftIO . writeC . Text.unpack $ "Downloading layer: " <> shortRef - fetchedImageLayer <- checkResponseIntegrity' =<< Docker.Registry.fetchLayer ("sha256:" <> layerDigest) + fetchedImageLayer <- Docker.Registry.fetchLayer ("sha256:" <> layerDigest) layerPath <- writeRespBody layerOut layerDigest fetchedImageLayer liftIO . writeC $ Text.unpack ("=> wrote " <> shortRef) @@ -125,7 +125,6 @@ fetchConfig = runHocker $ ask >>= \HockerMeta{..} -> do configDigest <- fetchManifest - >>= checkResponseIntegrity' >>= getConfigDigest . view Wreq.responseBody fetchImageConfig configDigest