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

download_and_extract failing #1464

Closed
abergmeier opened this issue Jul 1, 2016 · 3 comments
Closed

download_and_extract failing #1464

abergmeier opened this issue Jul 1, 2016 · 3 comments

Comments

@abergmeier
Copy link
Contributor

abergmeier commented Jul 1, 2016

I changed a call to new_http_archive to now use a custom repository_rule. Inside the rule I try to use download_and_extract to fetch an archive:

ctx.download_and_extract(
  "http://server/linux.tar.xz",
  ".",
)

Which fails with:

ERROR: /BUILD:20:1: no such package '@foo//': java.io.IOException: Error downloading from http://server/linux.tar.xz to /.../external/foo/@foo: Error downloading http://server/linux.tar.xz to /.../external/foo/@foo/linux.tar.xz: /.../external/foo/@foo/linux.tar.xz (No such file or directory) and referenced by '@bar//:blub'.

When executing wget http://server/linux.tar.xz downloading works fine.

Seems like multiple people have this problem: #623

@damienmg
Copy link
Contributor

damienmg commented Jul 1, 2016

Yes this is a known issue but #623 is unrelated.

ctx.file("empty") before it should fix. I believed I fixed this bug at HEAD.

@damienmg
Copy link
Contributor

damienmg commented Jul 1, 2016

Yes this was fixed (see #1172), the fix is b0119d7

@abergmeier
Copy link
Contributor Author

Indeed. Dumb me was running a stock 0.3 instead of our internal version (with b0119d7 in). Thanks.

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