{"action":"created","issue":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/821","labels_url":"https://api.github.com/repos/bazelbuild/bazel/issues/821/labels{/name}","comments_url":"https://api.github.com/repos/bazelbuild/bazel/issues/821/comments","events_url":"https://api.github.com/repos/bazelbuild/bazel/issues/821/events","html_url":"https://github.com/bazelbuild/bazel/issues/821","id":129304516,"number":821,"title":"Download error for new_http_archive url","user":{"login":"markusdr","id":1832155,"avatar_url":"https://avatars.githubusercontent.com/u/1832155?v=3","gravatar_id":"","url":"https://api.github.com/users/markusdr","html_url":"https://github.com/markusdr","followers_url":"https://api.github.com/users/markusdr/followers","following_url":"https://api.github.com/users/markusdr/following{/other_user}","gists_url":"https://api.github.com/users/markusdr/gists{/gist_id}","starred_url":"https://api.github.com/users/markusdr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markusdr/subscriptions","organizations_url":"https://api.github.com/users/markusdr/orgs","repos_url":"https://api.github.com/users/markusdr/repos","events_url":"https://api.github.com/users/markusdr/events{/privacy}","received_events_url":"https://api.github.com/users/markusdr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-27T23:46:08Z","updated_at":"2016-01-28T17:32:33Z","closed_at":null,"body":"I'm getting the following bazel error with tensorflow:\r\n\r\n    $ bazel build -c opt --config=cuda //tensorflow/cc:tutorials_example_trainer\r\n    ERROR:  tensorflow/tensorflow/core/platform/default/build_config/BUILD:36:1: \r\n    no such package '@jpeg_archive//': \r\n    Error downloading from http://www.ijg.org/files/jpegsrc.v9a.tar.gz\r\n\r\nIt turns out that bazel cannot download directly from the `ijg.org` in my network, due to security restrictions. However, I am able to download the file by hand. \r\n\r\nI tried just putting it into the required `.cache/bazel` location by hand and run the bazel command again. This used to work, but it won't work in the latest version, and the same error comes up again.\r\n\r\nWould it be possible to enable bazel to pick up a locally downloaded `jpegsrc.v9a.tar.gz` file? Allowing a local `file://` url in `new_http_archive` should solve the issue.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/comments/176294412","html_url":"https://github.com/bazelbuild/bazel/issues/821#issuecomment-176294412","issue_url":"https://api.github.com/repos/bazelbuild/bazel/issues/821","id":176294412,"user":{"login":"markusdr","id":1832155,"avatar_url":"https://avatars.githubusercontent.com/u/1832155?v=3","gravatar_id":"","url":"https://api.github.com/users/markusdr","html_url":"https://github.com/markusdr","followers_url":"https://api.github.com/users/markusdr/followers","following_url":"https://api.github.com/users/markusdr/following{/other_user}","gists_url":"https://api.github.com/users/markusdr/gists{/gist_id}","starred_url":"https://api.github.com/users/markusdr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markusdr/subscriptions","organizations_url":"https://api.github.com/users/markusdr/orgs","repos_url":"https://api.github.com/users/markusdr/repos","events_url":"https://api.github.com/users/markusdr/events{/privacy}","received_events_url":"https://api.github.com/users/markusdr/received_events","type":"User","site_admin":false},"created_at":"2016-01-28T17:32:33Z","updated_at":"2016-01-28T17:32:33Z","body":"For some reason, when I convert to `new_local_repository` it gives another error:\r\n\r\n    $ bazel build -c opt --config=cuda //tensorflow/cc:tutorials_example_trainer\r\n    ERROR: /home/local/ANT/mddreyer/.cache/bazel/_bazel_mddreyer/276918196e903f82b3401cd1a0adce36/external/jpeg_archive/BUILD:67:1: in genrule rule @jpeg_archive//:configure: cycle in dependency graph:\r\n        //tensorflow/cc:tutorials_example_trainer\r\n        //tensorflow/core:tensorflow\r\n        //tensorflow/core:tensorflow_opensource\r\n        //tensorflow/core:core\r\n        //tensorflow/core:core_cpu\r\n        //tensorflow/core:core_cpu_internal\r\n        //tensorflow/core:framework\r\n        //tensorflow/core:framework_internal\r\n        //tensorflow/core:lib_internal\r\n        //tensorflow/core/platform/default/build_config:platformlib\r\n        @jpeg_archive//:jpeg\r\n      * @jpeg_archive//:configure [self-edge].\r\n    ERROR: Loading of target '//tensorflow/cc:tutorials_example_trainer' failed; build aborted.\r\n"}}