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() doesn't create subdirectories specified in "output" argument #1172

Closed
steven-johnson opened this issue Apr 21, 2016 · 1 comment
Labels
P2 We'll consider working on this in future. (Assignee optional) type: bug
Milestone

Comments

@steven-johnson
Copy link
Contributor

given

output = "my_subdir"
repository_ctx.download_and_extract(url, output, sha256, type, strip_prefix)

this will generally fail (on Bazel OSX 0.22) because "my_subdir" doesn't exist in the newly-created cached dir, and download_and_extract isn't creating it.

Note that you can work around this by using

repository_ctx.file("my_subdir/empty_file", "") 

beforehand.

@damienmg
Copy link
Contributor

Oh I though I filed a bug about that. Yes download and download and extract should create the necessary folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 We'll consider working on this in future. (Assignee optional) type: bug
Projects
None yet
Development

No branches or pull requests

2 participants