{"action":"created","issue":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/5971","repository_url":"https://api.github.com/repos/bazelbuild/bazel","labels_url":"https://api.github.com/repos/bazelbuild/bazel/issues/5971/labels{/name}","comments_url":"https://api.github.com/repos/bazelbuild/bazel/issues/5971/comments","events_url":"https://api.github.com/repos/bazelbuild/bazel/issues/5971/events","html_url":"https://github.com/bazelbuild/bazel/issues/5971","id":353511564,"node_id":"MDU6SXNzdWUzNTM1MTE1NjQ=","number":5971,"title":"Directory outputs contain symlinks in 0.17.1rc1","user":{"login":"jayconrod","id":164791,"node_id":"MDQ6VXNlcjE2NDc5MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/164791?v=4","gravatar_id":"","url":"https://api.github.com/users/jayconrod","html_url":"https://github.com/jayconrod","followers_url":"https://api.github.com/users/jayconrod/followers","following_url":"https://api.github.com/users/jayconrod/following{/other_user}","gists_url":"https://api.github.com/users/jayconrod/gists{/gist_id}","starred_url":"https://api.github.com/users/jayconrod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayconrod/subscriptions","organizations_url":"https://api.github.com/users/jayconrod/orgs","repos_url":"https://api.github.com/users/jayconrod/repos","events_url":"https://api.github.com/users/jayconrod/events{/privacy}","received_events_url":"https://api.github.com/users/jayconrod/received_events","type":"User","site_admin":false},"labels":[{"id":356757428,"node_id":"MDU6TGFiZWwzNTY3NTc0Mjg=","url":"https://api.github.com/repos/bazelbuild/bazel/labels/release%20blocker","name":"release blocker","color":"b60205","default":false},{"id":1020661294,"node_id":"MDU6TGFiZWwxMDIwNjYxMjk0","url":"https://api.github.com/repos/bazelbuild/bazel/labels/team-Execution","name":"team-Execution","color":"f1f442","default":false},{"id":1020665933,"node_id":"MDU6TGFiZWwxMDIwNjY1OTMz","url":"https://api.github.com/repos/bazelbuild/bazel/labels/untriaged","name":"untriaged","color":"c34ddd","default":false}],"state":"closed","locked":false,"assignee":{"login":"laurentlb","id":485572,"node_id":"MDQ6VXNlcjQ4NTU3Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/485572?v=4","gravatar_id":"","url":"https://api.github.com/users/laurentlb","html_url":"https://github.com/laurentlb","followers_url":"https://api.github.com/users/laurentlb/followers","following_url":"https://api.github.com/users/laurentlb/following{/other_user}","gists_url":"https://api.github.com/users/laurentlb/gists{/gist_id}","starred_url":"https://api.github.com/users/laurentlb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurentlb/subscriptions","organizations_url":"https://api.github.com/users/laurentlb/orgs","repos_url":"https://api.github.com/users/laurentlb/repos","events_url":"https://api.github.com/users/laurentlb/events{/privacy}","received_events_url":"https://api.github.com/users/laurentlb/received_events","type":"User","site_admin":false},"assignees":[{"login":"laurentlb","id":485572,"node_id":"MDQ6VXNlcjQ4NTU3Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/485572?v=4","gravatar_id":"","url":"https://api.github.com/users/laurentlb","html_url":"https://github.com/laurentlb","followers_url":"https://api.github.com/users/laurentlb/followers","following_url":"https://api.github.com/users/laurentlb/following{/other_user}","gists_url":"https://api.github.com/users/laurentlb/gists{/gist_id}","starred_url":"https://api.github.com/users/laurentlb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurentlb/subscriptions","organizations_url":"https://api.github.com/users/laurentlb/orgs","repos_url":"https://api.github.com/users/laurentlb/repos","events_url":"https://api.github.com/users/laurentlb/events{/privacy}","received_events_url":"https://api.github.com/users/laurentlb/received_events","type":"User","site_admin":false}],"milestone":null,"comments":14,"created_at":"2018-08-23T19:00:38Z","updated_at":"2018-09-03T15:42:56Z","closed_at":"2018-09-03T15:42:56Z","author_association":"COLLABORATOR","body":"### Description of the problem / feature request:\r\n\r\nOriginally reported by @mhlopko in bazelbuild/rules_go#1669\r\n\r\nrules_go has a rule called `go_path` which can produce a directory tree in a couple of different modes. In `copy` mode, the contents of the directory are expected to be regular files and subdirectories. They are written as regular files, but other rules that consume this output see them as symbolic links in the sandbox.\r\n\r\nThis can break tools like `tar` if rule authors aren't careful to dereference symbolic links. This is new behavior in 0.17.1rc1, and I don't see any mention of it in the release notes, so I think it's a regression. If this is intended behavior going forward, I'll likely need to remove `copy` mode from `go_path`.\r\n\r\n### Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.\r\n\r\nThis [gist](https://gist.github.com/jayconrod/d6c7006199fcc79b39b3534bfcc84f21) defines a very simple rule that reproduces the problem and consumes the output of the rule in a test.\r\n\r\n### What operating system are you running Bazel on?\r\n\r\nLinux, amd64\r\n\r\n### What's the output of `bazel info release`?\r\n\r\n0.17.1rc1\r\n\r\n### Any other information, logs, or outputs that you want to share?\r\n\r\n@mhlopko pointed to #5721 as the point where this issue came up, but it happens for me locally without using a Docker image and doesn't seem related.\r\n\r\ncc @philwo "},"comment":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/comments/418148643","html_url":"https://github.com/bazelbuild/bazel/issues/5971#issuecomment-418148643","issue_url":"https://api.github.com/repos/bazelbuild/bazel/issues/5971","id":418148643,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODE0ODY0Mw==","user":{"login":"laurentlb","id":485572,"node_id":"MDQ6VXNlcjQ4NTU3Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/485572?v=4","gravatar_id":"","url":"https://api.github.com/users/laurentlb","html_url":"https://github.com/laurentlb","followers_url":"https://api.github.com/users/laurentlb/followers","following_url":"https://api.github.com/users/laurentlb/following{/other_user}","gists_url":"https://api.github.com/users/laurentlb/gists{/gist_id}","starred_url":"https://api.github.com/users/laurentlb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurentlb/subscriptions","organizations_url":"https://api.github.com/users/laurentlb/orgs","repos_url":"https://api.github.com/users/laurentlb/repos","events_url":"https://api.github.com/users/laurentlb/events{/privacy}","received_events_url":"https://api.github.com/users/laurentlb/received_events","type":"User","site_admin":false},"created_at":"2018-09-03T15:42:56Z","updated_at":"2018-09-03T15:42:56Z","author_association":"CONTRIBUTOR","body":"Thanks!\r\nAdded to the cherrypick list."}}
{"actor":{"display_login":"laurentlb"}}