{"action":"opened","issue":{"url":"https://api.github.com/repos/nextflow-io/nextflow/issues/171","repository_url":"https://api.github.com/repos/nextflow-io/nextflow","labels_url":"https://api.github.com/repos/nextflow-io/nextflow/issues/171/labels{/name}","comments_url":"https://api.github.com/repos/nextflow-io/nextflow/issues/171/comments","events_url":"https://api.github.com/repos/nextflow-io/nextflow/issues/171/events","html_url":"https://github.com/nextflow-io/nextflow/issues/171","id":158652377,"number":171,"title":"scratchDir overwriten by TMPDIR","user":{"login":"pauca","id":2961756,"avatar_url":"https://avatars.githubusercontent.com/u/2961756?v=3","gravatar_id":"","url":"https://api.github.com/users/pauca","html_url":"https://github.com/pauca","followers_url":"https://api.github.com/users/pauca/followers","following_url":"https://api.github.com/users/pauca/following{/other_user}","gists_url":"https://api.github.com/users/pauca/gists{/gist_id}","starred_url":"https://api.github.com/users/pauca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pauca/subscriptions","organizations_url":"https://api.github.com/users/pauca/orgs","repos_url":"https://api.github.com/users/pauca/repos","events_url":"https://api.github.com/users/pauca/events{/privacy}","received_events_url":"https://api.github.com/users/pauca/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-06T11:04:04Z","updated_at":"2016-06-06T11:04:04Z","closed_at":null,"body":"if TMPDIR is set, scratchDir gets overwriten by TMPDIR\r\n\r\nto reproduce\r\n```\r\nc1 = Channel.from( 1)\r\nprocess A {\r\n    scratch '/home/myuser'\r\n    executor 'sge'\r\n    input:\r\n    val c1   \r\n    output:\r\n    file \"out_scratch_dir.txt\" into aout\r\n    script:\r\n    \"\"\"\r\n    touch out_scratch_dir.txt\r\n    echo \\\"PWD `pwd` \\\" >> out_scratch_dir.txt\r\n    \"\"\"\r\n}\r\n```\r\n"}}
{"actor":{"display_login":"pauca"}}