{"action":"created","issue":{"url":"https://api.github.com/repos/GoASTScanner/gas/issues/210","repository_url":"https://api.github.com/repos/GoASTScanner/gas","labels_url":"https://api.github.com/repos/GoASTScanner/gas/issues/210/labels{/name}","comments_url":"https://api.github.com/repos/GoASTScanner/gas/issues/210/comments","events_url":"https://api.github.com/repos/GoASTScanner/gas/issues/210/events","html_url":"https://github.com/GoASTScanner/gas/issues/210","id":325843300,"node_id":"MDU6SXNzdWUzMjU4NDMzMDA=","number":210,"title":"Wrong path when file specified as args","user":{"login":"weijiangan","id":6372144,"node_id":"MDQ6VXNlcjYzNzIxNDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/6372144?v=4","gravatar_id":"","url":"https://api.github.com/users/weijiangan","html_url":"https://github.com/weijiangan","followers_url":"https://api.github.com/users/weijiangan/followers","following_url":"https://api.github.com/users/weijiangan/following{/other_user}","gists_url":"https://api.github.com/users/weijiangan/gists{/gist_id}","starred_url":"https://api.github.com/users/weijiangan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weijiangan/subscriptions","organizations_url":"https://api.github.com/users/weijiangan/orgs","repos_url":"https://api.github.com/users/weijiangan/repos","events_url":"https://api.github.com/users/weijiangan/events{/privacy}","received_events_url":"https://api.github.com/users/weijiangan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-23T19:30:50Z","updated_at":"2018-06-03T20:49:43Z","closed_at":null,"author_association":"NONE","body":"### Summary \r\nUnable to check file when filename is specified as args because `gas` doesn't get the correct file path. It repeats the repo name twice and results in an invalid path\r\n\r\n### Steps to reproduce the behavior\r\nRun `gas` command with filename as args, i.e.\r\n\r\n```sh\r\n$ gas -fmt=csv main.go\r\n[gas] 2018/05/24 03:22:34 including rules: default\r\n[gas] 2018/05/24 03:22:34 excluding rules: default\r\n[gas] 2018/05/24 03:22:34 Skipping: /Users/weijiangan/go/src/somegit.service/user/git-repo/somegit.service/user/git-repo/main.go. Path doesn't exist.\r\n[gas] 2018/05/24 03:22:34 no initial packages were loaded\r\n```\r\n\r\n### Gas version\r\n5/24/2018\r\n\r\n### Go version (output of 'go version')\r\ngo1.10.1 darwin/amd64\r\n\r\n### Operating system / Environment\r\nmacOS 10.13.5\r\n\r\n### Expected behavior\r\nCheck file in args\r\n\r\n### Actual behavior\r\nFile path processing botched"},"comment":{"url":"https://api.github.com/repos/GoASTScanner/gas/issues/comments/394190335","html_url":"https://github.com/GoASTScanner/gas/issues/210#issuecomment-394190335","issue_url":"https://api.github.com/repos/GoASTScanner/gas/issues/210","id":394190335,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDE5MDMzNQ==","user":{"login":"weijiangan","id":6372144,"node_id":"MDQ6VXNlcjYzNzIxNDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/6372144?v=4","gravatar_id":"","url":"https://api.github.com/users/weijiangan","html_url":"https://github.com/weijiangan","followers_url":"https://api.github.com/users/weijiangan/followers","following_url":"https://api.github.com/users/weijiangan/following{/other_user}","gists_url":"https://api.github.com/users/weijiangan/gists{/gist_id}","starred_url":"https://api.github.com/users/weijiangan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weijiangan/subscriptions","organizations_url":"https://api.github.com/users/weijiangan/orgs","repos_url":"https://api.github.com/users/weijiangan/repos","events_url":"https://api.github.com/users/weijiangan/events{/privacy}","received_events_url":"https://api.github.com/users/weijiangan/received_events","type":"User","site_admin":false},"created_at":"2018-06-03T20:49:43Z","updated_at":"2018-06-03T20:49:43Z","author_association":"NONE","body":"Here's the output of git rev-parse HEAD:\r\n```\r\n4ae8c95b4097691ea5b2b0c5060f4ca0413dfcef\r\n```\r\nmy `$GOPATH` is `/Users/weijiangan/go`\r\n\r\nThanks!"}}
{"actor":{"display_login":"weijiangan"}}