Skip to content
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

Bug when a package is specified by a url to a tarball #1884

Closed
paul-rouse opened this issue Mar 8, 2016 · 1 comment
Closed

Bug when a package is specified by a url to a tarball #1884

paul-rouse opened this issue Mar 8, 2016 · 1 comment

Comments

@paul-rouse
Copy link
Contributor

This is a small, but serious, error introduced in 99eb520 (on 27 Jan). I'll send a PR in a few minutes to fix it and provide a test case.

Using a reference like this in stack.yaml is now broken:

packages:
- https://hackage.haskell.org/package/half-0.2.2.3/half-0.2.2.3.tar.gz

It produces an error along the lines of "Archive extraction failed. We support tarballs and zip, couldn't handle the following URL, ...", but the underlying problem is that it is trying to use the tarball file name as the directory into which to unpack!

[This is nothing to do with the particular package, which has been chosen here simply because it is a small one for testing purposes.]

@mgsloan
Copy link
Contributor

mgsloan commented Mar 9, 2016

Good catch, thanks for the PR!

@mgsloan mgsloan closed this as completed Mar 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants