Fix broken oci-image-tool#177
Conversation
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
|
ping @s-urbaniak |
|
also the tar extraction is copied from docker |
|
funny go lint failure... |
29dcda5 to
42d14df
Compare
image/config.go
Outdated
| func findConfig(w walker, d *descriptor) (*config, error) { | ||
| var c config | ||
| cpath := filepath.Join("blobs", d.Digest) | ||
| cpath := filepath.Join("blobs", d.getDigest()) |
|
Just a couple of nits, thanks 👍 back then I didn't have a reference tool to build those images. |
42d14df to
36bf5e0
Compare
|
yet, the fedora image doesn't unpack correctly - should we just use the Docker's |
|
@runcom sure, if it helps |
|
I won't hold this PR though - the |
|
lgtm, once green |
36bf5e0 to
5c9fb98
Compare
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
5c9fb98 to
44210d0
Compare
can we relax gocyclo? seems like that function is that complex because it needs to be (it's the same in Docker) |
|
|
||
| func (d *descriptor) normalizeDigest() string { | ||
| return strings.Replace(d.Digest, ":", "-", -1) | ||
| } |
There was a problem hiding this comment.
On Fri, Jul 22, 2016 at 07:18:32AM -0700, Antonio Murdaca wrote:
+func (d *descriptor) normalizeDigest() string {
- return strings.Replace(d.Digest, ":", "-", -1)
+}I see, but
oci-image-toolisn't working at all w/o this fix and
your #159 it's a rather bigger PR with a broader scope, I'd love to
have this merged so people can use this tool instead of waiting on
#159
I'm not sure what's holding #159 up, it's been out there for a while
;). So I'm not sure what timeframe to expect before people can use it
(although folks are certainly free to use it now, without waiting on
the branch to land in this repo ;).
There was a problem hiding this comment.
I'm not sure what's holding #159 up, it's been out there for a while
;). So I'm not sure what timeframe to expect before people can use it
(although folks are certainly free to use it now, without waiting on
the branch to land in this repo ;).
I don't know either - just that you PR is 1000+ loc changed - while this one is just pulling in 10 additions (0e8f74b) to fix a fatal bug.
I believe this should go in asap. Potentially #159 can take a lot more time to be reviewed (not maintainers reviewed it yet)
There was a problem hiding this comment.
On Fri, Jul 22, 2016 at 07:52:32AM -0700, Antonio Murdaca wrote:
I believe this should go in asap. Potentially #159 can take a lot
more time to be reviewed (not maintainers reviewed it yet)
I think it would be more efficient to put better abstractions into
place as soon as possible, instead of iterating on an approach we
expect to replace. But that's a throughput vs. latency issue for the
maintainers to figure out ;).
There was a problem hiding this comment.
the point now is that, unfortunately this tool is broken and it's broken since a lot now probably (#165 is 28 days old why was that closed)
Anyhow I'm ok either way...
There was a problem hiding this comment.
On Fri, Jul 22, 2016 at 08:09:47AM -0700, Antonio Murdaca wrote:
the point now is that, unfortunately this tool is broken and it's
broken since a lot now…
It's been broken (on this semicolon point) since it was born, because
the implementation was merged in #82 well before the spec landed in
#94. That means that nobody has ever used it for spec-compliant
unpacking, which takes the pressure off (in my opinion) for fixing it
ASAP.
|
@runcom sure, do you mind adding an additional commit, and bump |
done, thanks @s-urbaniak |
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
7647d0b to
08bed93
Compare
$ mkdir fedora-oci $ skopeo copy docker://fedora oci:fedora-oci $ mkdir fedora-bundle $ oci-image-tool create-runtime-bundle --ref latest fedora-oci fedora-bundle # get most of the errors fixed in this PREventually the extraction fails because of permissions but this is expected because
fedorahas/rootpopulated while for instancebusyboxdoesn't have it so the only option is to unpack as root: