-
Notifications
You must be signed in to change notification settings - Fork 841
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
Unable to extract remote tgz #3647
Comments
Very curious! Something very odd is happening, it seems like the file that stack downloads is just a tarball, with no gzipping. Whereas if I Next step is to try uploading the file elsewhere and seeing if it works. Would probably be good to accept plain tar files and ignore not being able to ungzip. |
If I was to take a guess, the remote server is marking the stream as gzip-compressed, and http-client is therefore decompressing in transit. There's ambiguity in the HTTP spec (or at least in implementations) regarding how to handle this case, most servers do not mark a gzip-compressed file as a gzip-compressed stream. Having Stack either:
Should both work. A simpler workaround for now is hosting the file in question at a different location (a Github release, for example, would likely work fine). |
I've opened up #3655 for support of |
@snoyberg Is there a way to include dependencies on archives that do not have a P.S. I think your documentation of adding dependencies could use some expanding. Maybe especially the interactions between |
No, all packages must have a If you have ideas for expanding the documentation, a PR would definitely be appreciated, thank you. For now though, it looks like the issue here has been resolved, is that correct? |
Yes, I think so. I haven't been able to test but I will get back to you if it doesn't work. |
General summary/comments
I am trying to add a remote dependency hosted at
http://www.mathstat.dal.ca/~selinger/quipper/downloads/quipper-0.8.tgz
but the extraction of the archive fails.Steps to reproduce
extra-deps
instack.yaml
:stack build
stack.yaml.txt
Expected
I expect it to extract the archive for use as a dependecy. Downloading the archive manually and extracting using
gunzip
andtar
does work.Actual
I get an error message saying that the extraction failed because the file type is not supported.
Stack version
Method of installation
Installed stack through OSX brew the upgraded through
stack upgrade
.The text was updated successfully, but these errors were encountered: