Skip to content

support extracting zip archives #971

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

Open
maxfisher-g opened this issue Nov 16, 2023 · 7 comments · May be fixed by #1108
Open

support extracting zip archives #971

maxfisher-g opened this issue Nov 16, 2023 · 7 comments · May be fixed by #1108

Comments

@maxfisher-g
Copy link
Contributor

Some packages such as proactive-jupyter-kernel upload their source as a zip file which currently fails as the static analysis archive extraction expects a .tar.gz file.

We should do filetype detection using file (NOT the file extension) so that we can do static analysis on zip archives too

@gliptak
Copy link
Contributor

gliptak commented Mar 13, 2024

code to be updated seem to be at

func ExtractTarGzFile(tgzPath string, outputDir string) error {

might you be open to introducing something like https://github.com/mholt/archiver?

@maxfisher-g
Copy link
Contributor Author

Hi @gliptak, yes that's a good suggestion! I'd be open to introducing something like that. Please feel free to submit a PR.

@tiegz
Copy link

tiegz commented Mar 6, 2025

@maxfisher-g I could give that a shot if you assign me to this?

@tiegz
Copy link

tiegz commented Mar 12, 2025

PR here: #1108

@gliptak
Copy link
Contributor

gliptak commented Mar 12, 2025

#1035 also implemented this functionality (with support for additional archive types) ...

@tiegz
Copy link

tiegz commented Mar 12, 2025

@gliptak 😭 I totally missed that

@maxfisher-g
Copy link
Contributor Author

Hi @gliptak @tiegz, so sorry for the silence on this. I am no longer working with this project, and I believe @calebbrown is the sole maintainer now.

@gliptak from memory I think there was some hesitation to merge your PR because of introducing extra third party dependencies (it was around the time of the xz incident). Sorry to leave you hanging.

Unfortunately I can't comment on whether either PR will be merged, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants