{"action":"closed","issue":{"url":"https://api.github.com/repos/bazelbuild/rules_dotnet/issues/26","repository_url":"https://api.github.com/repos/bazelbuild/rules_dotnet","labels_url":"https://api.github.com/repos/bazelbuild/rules_dotnet/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/bazelbuild/rules_dotnet/issues/26/comments","events_url":"https://api.github.com/repos/bazelbuild/rules_dotnet/issues/26/events","html_url":"https://github.com/bazelbuild/rules_dotnet/issues/26","id":178082048,"number":26,"title":"bazel run csharp_binary: mono not found","user":{"login":"pcj","id":50580,"avatar_url":"https://avatars.githubusercontent.com/u/50580?v=3","gravatar_id":"","url":"https://api.github.com/users/pcj","html_url":"https://github.com/pcj","followers_url":"https://api.github.com/users/pcj/followers","following_url":"https://api.github.com/users/pcj/following{/other_user}","gists_url":"https://api.github.com/users/pcj/gists{/gist_id}","starred_url":"https://api.github.com/users/pcj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcj/subscriptions","organizations_url":"https://api.github.com/users/pcj/orgs","repos_url":"https://api.github.com/users/pcj/repos","events_url":"https://api.github.com/users/pcj/events{/privacy}","received_events_url":"https://api.github.com/users/pcj/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-20T14:48:50Z","updated_at":"2016-09-29T01:53:05Z","closed_at":"2016-09-29T01:53:05Z","body":"Running a csharp_binary fails to find mono:\r\n\r\n```sh\r\npcj:~/github/rules_protobuf/examples/helloworld/csharp$ bazel run GreeterClient\r\nINFO: Found 1 target...\r\nTarget //examples/helloworld/csharp/GreeterClient:GreeterClient up-to-date:\r\n  bazel-bin/examples/helloworld/csharp/GreeterClient/GreeterClient.exe\r\n  bazel-bin/examples/helloworld/csharp/GreeterClient/GreeterClient\r\nINFO: Elapsed time: 0.084s, Critical Path: 0.00s\r\n\r\nINFO: Running command line: bazel-bin/examples/helloworld/csharp/GreeterClient/GreeterClient\r\n/private/var/tmp/_bazel_pcj/63330772b4917b139280caef8bb81867/execroot/rules_protobuf/bazel-out/local-fastbuild/bin/examples/helloworld/csharp/GreeterClient/GreeterClient: line 14: org_pubref_rules_protobuf/external/mono/bin/mono: No such file or directory\r\n```\r\n\r\n```sh\r\n#!/bin/bash\r\n\r\nif [[ -e \"$0.runfiles\" ]]; then\r\n  cd $0.runfiles/org_pubref_rules_protobuf\r\nfi\r\n\r\n# TODO(jeremy): This is a gross and fragile hack.\r\n# We should be able to do better than this.\r\nln -s -f org_pubref_rules_protobuf/examples/helloworld/csharp/GreeterClient/GreeterClient.exe $(basename examples/helloworld/csharp/GreeterClient/GreeterClient.exe)\r\nfor l in ../nuget_google_protobuf/Google.Protobuf.3.0.0/lib/net45/Google.Protobuf.dll ../nuget_google_protobuf/Google.Protobuf.3.0.0/lib/netstandard1.0/Google.Protobuf.dll ../nuget_grpc/Grpc.Core.1.0.0/lib/net45/Grpc.Core.dll examples/helloworld/csharp/Greeter/Greeter.dll ../nuget_google_protobuf/Google.Protobuf.3.0.0/lib/net45/Google.Protobuf.dll ../nuget_google_protobuf/Google.Protobuf.3.0.0/lib/netstandard1.0/Google.Protobuf.dll ../nuget_grpc/Grpc.Core.1.0.0/lib/net45/Grpc.Core.dll; do\r\n    ln -s -f org_pubref_rules_protobuf/$l $(basename org_pubref_rules_protobuf/$l)\r\ndone\r\n\r\norg_pubref_rules_protobuf/external/mono/bin/mono $(basename examples/helloworld/csharp/GreeterClient/GreeterClient.exe) \"$@\"\r\n```"}}
{"actor":{"display_login":"zaphar"}}