Commit 9ddcc0a
committed
fix: Prioritize oci digest when tag is specified as well
Previously digest was removed and `latest` tag was added if missing.
This leads to either failing to download the image (when `latest` is not present),
or fetching the possibly wrong image and then failing on digest comparison.
New behavior is consistent with `docker pull` - when digest is specified,
the tag is disregarded.1 parent f9d41cf commit 9ddcc0a
1 file changed
Lines changed: 4 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 56 | + | |
| 57 | + | |
68 | 58 | | |
69 | 59 | | |
70 | 60 | | |
71 | 61 | | |
72 | 62 | | |
73 | 63 | | |
74 | 64 | | |
75 | | - | |
76 | | - | |
| 65 | + | |
| 66 | + | |
77 | 67 | | |
78 | 68 | | |
79 | 69 | | |
| |||
0 commit comments