Disable tgz extraction on pull
It seems that client.pull() automatically extracts archives which is a nice feature however I don't require it so it is possible to disable?
I've also noticed that the result from the pull is an invalid path, the path is actually the path to the extacted folder however the returned path includes the tgz which is infact in another folder (all be it with a random name)
It's partially related to this issue: https://github.com/oras-project/oras-go/issues/644. We should possibly follow what they decide to do and then mimic it here.
When I use "oras pull" it doesn't unpack the tgz automatically so I thought it was just an issue with the py library. Looking at the pull function, could we add an argument like "skip_unpack= kwargs.get("skip_unpack", false)" and then check the value of that variable here if layer["mediaType"] == oras.defaults.default_blob_dir_media_type:
Yes absolutely - I think that's the direction the upstream client will go to. Would you care to do a pull request? We can add the argument, and ensure that:
- Documentation for usage is added
- A test
- Update the CHANGELOG.md and version.py
Thank you!