-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exploring package contents easily #5
Comments
|
Well now I just double click. 😄 That's not really the point though. I can make some suggestions if you prefer. Was trying to leave it open ended in case you had your own thoughts here. |
sure, if you have suggestions, please post them. Double-clicking is nice, but I'm willing to sacrifice it for 10x decompress/extraction speed. |
I think maybe you're overestimating the timeline for .tar.bz2 files going away. They're not going away any time soon. Right now, things are built as .tar.bz2 and then converted to .conda files later. You can still download .tar.bz2 files for your package. In fact, that's all you'll get unless you do extra work to produce the .conda files. It would be nice if .conda files were also double-clickable, for sure. |
If they have a useful magic in the beginning, it should be easy to link an application to the file type. You'd probably want an installer to open though, not a content viewer. |
Well one suggestion would be to have this information accessible on Anaconda.org. That would avoid needing to download the package at all (unless the specific package contents need to be checked more closely). |
Hi there, thank you for your contribution! This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs. If you would like this issue to remain open please:
NOTE: If this issue was closed prematurely, please leave a comment. Thanks! |
Would be good to keep this open |
This came up again in this comment ( conda-forge/conda-forge.github.io#1586 (comment) ) cc @dhirschfeld |
One trick that might help would be to have a separate CI job which unpacked the contents of the just-built package and called
|
This information is already in https://github.com/regro/libcfgraph |
Yeah think it depends on what question one is asking. If it is, does this package contain |
FWIW one option might be to use PeaZip. Maybe this is worth packaging ourselves ( conda-forge/staged-recipes#21563 )? |
Like Could we re-use part of Python's built-in tar command line utility? |
Adding |
While researching for that PR also found out that you can use # .tar.bz2:
tar tvf path/to/artifact.tar.bz2
# .conda: package contents
tar xOf path/to/artifact.conda "pkg-*.tar.zst" | tar tv
# .conda: info/ metadata
tar xOf path/to/artifact.conda "info-*.tar.zst" | tar tv In case it varies across platforms, this is on macOS with: $ tar --version
bsdtar 3.5.3 - libarchive 3.5.3 zlib/1.2.12 liblzma/5.0.5 bz2lib/1.0.8 |
Mind blown, extracting .zip with the libarchive tar command! 🤯 |
Nice! Thanks Jaime 🙏 Wonder if it would be worth adding a |
Turns out you can use
|
@jaimergp fixed? |
I think so! The only thing missing is some documentation, I'd say? I can open a PR if you agree. |
One thing that I really enjoy about the current format is how easy it is to unpack a package and inspect its contents. This is really great as a packager to make sure I'm really producing what I think I am or aid in debugging build issues I'm encountering. While I can certainly appreciate the gains made by compressing packages more efficiently and organizing things a bit, I'd be curious to know what recommendations the Conda team has to packagers trying to quickly inspect package contents.
The text was updated successfully, but these errors were encountered: