{"action":"opened","issue":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/2220","repository_url":"https://api.github.com/repos/bazelbuild/bazel","labels_url":"https://api.github.com/repos/bazelbuild/bazel/issues/2220/labels{/name}","comments_url":"https://api.github.com/repos/bazelbuild/bazel/issues/2220/comments","events_url":"https://api.github.com/repos/bazelbuild/bazel/issues/2220/events","html_url":"https://github.com/bazelbuild/bazel/issues/2220","id":194694980,"number":2220,"title":"`bazel fetch` does not support target subtraction","user":{"login":"aj-michael","id":7756476,"avatar_url":"https://avatars.githubusercontent.com/u/7756476?v=3","gravatar_id":"","url":"https://api.github.com/users/aj-michael","html_url":"https://github.com/aj-michael","followers_url":"https://api.github.com/users/aj-michael/followers","following_url":"https://api.github.com/users/aj-michael/following{/other_user}","gists_url":"https://api.github.com/users/aj-michael/gists{/gist_id}","starred_url":"https://api.github.com/users/aj-michael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aj-michael/subscriptions","organizations_url":"https://api.github.com/users/aj-michael/orgs","repos_url":"https://api.github.com/users/aj-michael/repos","events_url":"https://api.github.com/users/aj-michael/events{/privacy}","received_events_url":"https://api.github.com/users/aj-michael/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-09T20:56:48Z","updated_at":"2016-12-09T20:56:48Z","closed_at":null,"body":"```\r\n$ bazel info release\r\nrelease 0.4.2\r\n\r\n$ tree\r\n.\r\n├── a\r\n│   ├── b\r\n│   │   └── BUILD\r\n│   └── BUILD\r\n└── WORKSPACE\r\n2 directories, 3 files\r\n\r\n$ cat a/BUILD\r\njava_library(\r\n    name = \"a\",\r\n    srcs = [],\r\n)\r\n\r\n$ cat b/BUILD\r\ncat: b/BUILD: No such file or directory\r\n\r\n$ cat a/b/BUILD\r\njava_library(\r\n    name = \"b\",\r\n    srcs = [],\r\n)\r\n\r\n$ bazel build -- //... -//a/...                                                                  \r\nINFO: Found 0 targets...\r\nINFO: Elapsed time: 1.370s, Critical Path: 0.00s\r\n\r\n$ bazel fetch -- //... -//a/...                                                                  \r\nERROR: Error while parsing 'deps(//... union -//a/... union @bazel_tools//tools/jdk:toolchain)': syntax error at '- //a/... union'.\r\n```\r\n\r\nTarget subtraction is documented [here](https://www.bazel.io/docs/command-line-reference.html).\r\nThe relevant code is [here](https://github.com/bazelbuild/bazel/blob/873c259abc01b84524cc4280f0f8ddd5a4e90e62/src/main/java/com/google/devtools/build/lib/bazel/commands/FetchCommand.java#L101)."}}
{"actor":{"display_login":"aj-michael"}}