{"action":"created","issue":{"url":"https://api.github.com/repos/docker/swarm/issues/1209","labels_url":"https://api.github.com/repos/docker/swarm/issues/1209/labels{/name}","comments_url":"https://api.github.com/repos/docker/swarm/issues/1209/comments","events_url":"https://api.github.com/repos/docker/swarm/issues/1209/events","html_url":"https://github.com/docker/swarm/pull/1209","id":105901191,"number":1209,"title":"try to use gnu version of readlink if available","user":{"login":"MHBauer","id":13337345,"avatar_url":"https://avatars.githubusercontent.com/u/13337345?v=3","gravatar_id":"","url":"https://api.github.com/users/MHBauer","html_url":"https://github.com/MHBauer","followers_url":"https://api.github.com/users/MHBauer/followers","following_url":"https://api.github.com/users/MHBauer/following{/other_user}","gists_url":"https://api.github.com/users/MHBauer/gists{/gist_id}","starred_url":"https://api.github.com/users/MHBauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MHBauer/subscriptions","organizations_url":"https://api.github.com/users/MHBauer/orgs","repos_url":"https://api.github.com/users/MHBauer/repos","events_url":"https://api.github.com/users/MHBauer/events{/privacy}","received_events_url":"https://api.github.com/users/MHBauer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/swarm/labels/status/0-triage","name":"status/0-triage","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-09-10T21:26:30Z","updated_at":"2015-09-11T22:31:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/swarm/pulls/1209","html_url":"https://github.com/docker/swarm/pull/1209","diff_url":"https://github.com/docker/swarm/pull/1209.diff","patch_url":"https://github.com/docker/swarm/pull/1209.patch"},"body":"On osx the integration script will fail if it is not run from /swarm/test/integration directory.\r\n\r\n1. osx has bsd readlink, which doesn't have the -f flag. By pulling it out into separate subshell, it fails the script early.\r\n2. osx users (and others) tend to also install the gnu version of tools (using `brew install coreutils` or some such) but with a `g` prefix, so try to find and use that version before using a different version.\r\n\r\ntested on osx and a linux vm.\r\n\r\n^ I don't know if you want this information in the commit message, or if it's good enough to have it on a github PR.\r\n"},"comment":{"url":"https://api.github.com/repos/docker/swarm/issues/comments/139677249","html_url":"https://github.com/docker/swarm/pull/1209#issuecomment-139677249","issue_url":"https://api.github.com/repos/docker/swarm/issues/1209","id":139677249,"user":{"login":"MHBauer","id":13337345,"avatar_url":"https://avatars.githubusercontent.com/u/13337345?v=3","gravatar_id":"","url":"https://api.github.com/users/MHBauer","html_url":"https://github.com/MHBauer","followers_url":"https://api.github.com/users/MHBauer/followers","following_url":"https://api.github.com/users/MHBauer/following{/other_user}","gists_url":"https://api.github.com/users/MHBauer/gists{/gist_id}","starred_url":"https://api.github.com/users/MHBauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MHBauer/subscriptions","organizations_url":"https://api.github.com/users/MHBauer/orgs","repos_url":"https://api.github.com/users/MHBauer/repos","events_url":"https://api.github.com/users/MHBauer/events{/privacy}","received_events_url":"https://api.github.com/users/MHBauer/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T22:31:21Z","updated_at":"2015-09-11T22:31:21Z","body":"Like @tianon said, I did not want to overcomplicate things. I've seen this *trick* done elsewhere for projects that need to be basically runable on bash, and probably have a version of the gnutools available. I don't think any of us want to bring autotools into this..."}}