Skip to content
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.

Commit

Permalink
Fix #2
Browse files Browse the repository at this point in the history
The structure of the manifest has changed
see
https://github.com/docker/distribution/blob/master/docs/spec/api.md#pulling-an-image-manifest
All the layers hashes are returned for every manifest, so instead of
comparing the only hash, we compare the all table of hashes.
  • Loading branch information
clabbe committed Mar 4, 2016
1 parent 7aa6690 commit a7b3b0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tagfish/docker_registry_v2_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def tags_logic
end

tags_with_hashes = tag_names.inject({}) do |dict, tag|
dict[tag] = hash(tag)["fsLayers"][0]["blobSum"]
dict[tag] = hash(tag)["fsLayers"]
dict
end
end
Expand Down

0 comments on commit a7b3b0e

Please sign in to comment.