{"action":"created","issue":{"url":"https://api.github.com/repos/revel/cmd/issues/36","repository_url":"https://api.github.com/repos/revel/cmd","labels_url":"https://api.github.com/repos/revel/cmd/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/revel/cmd/issues/36/comments","events_url":"https://api.github.com/repos/revel/cmd/issues/36/events","html_url":"https://github.com/revel/cmd/issues/36","id":111104831,"number":36,"title":"revel panics with invalid memory address or nil pointer dereference","user":{"login":"PradheepShrinivasan","id":3962400,"avatar_url":"https://avatars.githubusercontent.com/u/3962400?v=3","gravatar_id":"","url":"https://api.github.com/users/PradheepShrinivasan","html_url":"https://github.com/PradheepShrinivasan","followers_url":"https://api.github.com/users/PradheepShrinivasan/followers","following_url":"https://api.github.com/users/PradheepShrinivasan/following{/other_user}","gists_url":"https://api.github.com/users/PradheepShrinivasan/gists{/gist_id}","starred_url":"https://api.github.com/users/PradheepShrinivasan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PradheepShrinivasan/subscriptions","organizations_url":"https://api.github.com/users/PradheepShrinivasan/orgs","repos_url":"https://api.github.com/users/PradheepShrinivasan/repos","events_url":"https://api.github.com/users/PradheepShrinivasan/events{/privacy}","received_events_url":"https://api.github.com/users/PradheepShrinivasan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"jeevatkm","id":1175977,"avatar_url":"https://avatars.githubusercontent.com/u/1175977?v=3","gravatar_id":"","url":"https://api.github.com/users/jeevatkm","html_url":"https://github.com/jeevatkm","followers_url":"https://api.github.com/users/jeevatkm/followers","following_url":"https://api.github.com/users/jeevatkm/following{/other_user}","gists_url":"https://api.github.com/users/jeevatkm/gists{/gist_id}","starred_url":"https://api.github.com/users/jeevatkm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeevatkm/subscriptions","organizations_url":"https://api.github.com/users/jeevatkm/orgs","repos_url":"https://api.github.com/users/jeevatkm/repos","events_url":"https://api.github.com/users/jeevatkm/events{/privacy}","received_events_url":"https://api.github.com/users/jeevatkm/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-10-13T05:07:59Z","updated_at":"2016-06-12T21:15:55Z","closed_at":"2016-06-10T18:48:34Z","body":"Currently when we create the build target directory in the same path as that of the revel panics \r\n\r\n\r\nPradheep testapp $ pwd\r\n/Users/Pradheep/mailbox/src/testapp\r\nPradheep testapp $ revel build testapp ./tmp/\r\n~\r\n~ revel! http://revel.github.io\r\n~\r\nINFO  2015/10/12 12:56:55 revel.go:329: Loaded module static\r\nINFO  2015/10/12 12:56:55 revel.go:206: Initialized Revel v0.12.0 (2015-03-25) for >= go1.3\r\nINFO  2015/10/12 12:56:55 build.go:172: Cleaning dir tmp\r\nINFO  2015/10/12 12:56:55 build.go:172: Cleaning dir routes\r\nINFO  2015/10/12 12:56:55 build.go:172: Cleaning dir tmp\r\nINFO  2015/10/12 12:56:55 build.go:172: Cleaning dir routes\r\nTRACE 2015/10/12 12:56:55 build.go:94: Exec: [/usr/local/bin/go build -ldflags -X testapp/app.APP_VERSION \"\" -tags  -o /Users/Pradheep/mailbox/bin/revel.d/testapp/testapp testapp/app/tmp]\r\npanic: runtime error: invalid memory address or nil pointer dereference [recovered]\r\n\tpanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal 0xb code=0x1 addr=0x20 pc=0xec40\r\n\r\ngoroutine 1 [running]:\r\nmain.main.func2()\r\n\t/Users/Pradheep/mailbox/src/github.com/revel/cmd/revel/rev.go:71 +0x5b\r\nmain.mustCopyDir.func1(0xc8201e9c00, 0x3f7, 0x0, 0x0, 0xb64680, 0xc820369710, 0x0, 0x0)\r\n\t/Users/Pradheep/mailbox/src/github.com/revel/cmd/revel/util.go:96 +0x2b0c820185668, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.5.1/libexec/src/path/filepath/path.go:374 +0x4fc\r\npath/filepath.walk(0xc820190400, 0x3b3, 0xb646a8, 0xc8203fa500, 0xc820185668, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.5.1/libexec/src/path/filepath/path.go:374 +0x4fc\r\npath/filepath.walk(0xc82052e000, 0x3ab, 0xb646a8, 0xc820014f00, 0xc820185668, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.5.1/libexec/src/path/filepath/path.go:374 +0x4fc\r\npath/filepath.walk(0xc8200a8400, 0x387, 0xb646a8, 0xc820370280, 0xc820185668, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.5.1/libexec/src/path/filepath/path.go:374 +0x4fc\r\npath/filepath.walk(0xc82044c000, 0x383, 0xb646a8, 0xc820015a40, 0xc820185668, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.5.1/libexec/src/path/filepath/path.go:374 +0x4fc\r\npath/filepath.walk(0xc82029a700, 0x37b, 0xb646a8, 0xc8200148c0, 0xc820185668, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.5.1/libexec/src/path/filepath/path.go:374 +0x4fc\r\npath/filepath.walk(0xc820067c00, 0x377, 0xb646a8, 0xc8200147d0, 0xc820185668, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.5.1/libexec/src/path/filepath/path.go:374 +0x4fc\r\npath/filepath.walk(0xc820353500, 0x373, 0xb646a8, 0xc8203fb2c0, 0xc820185668, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.5.1/libexec/src/path/filepath/path.go:374 +0x4fc\r\npath/filepath.walk(0xc8203e7c00, 0x36b, 0xb646a8, 0xc820015ea0, 0xc820185668, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.5.1/libexec/src/path/filepath/path.go:374 +0x4fc\r\npath/filepath.walk(0xc8204b7500, 0x367, 0xb646a8, 0xc820015e00, 0xc820185668, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.5.1/libexec/src/path/filepath/path.go:374 +0x4fc\r\npath/filepath.walk(0xc82059c000, 0x363, 0xb646a8, 0xc82033eb90, 0xc820185668, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.5.1/libexec/src/path/filepath/path.go:374 +0x4fc\r\npath/filepath.walk(0xc8205bd180, 0x35b, 0xb646a8, 0xc8203fbbd0, 0xc820185668, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.5.1/libexec/src/path/filepath/path.go:374 +0x4fc\r\npath/filepath.walk(0xc8205e6a80, 0x357, 0xb646a8, 0xc8203fb7c0, 0xc820185668, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.5.1/libexec/src/path/filepath/path.go:374 +0x4fc\r\npath/filepath.walk(0xc8204d5c00, 0x353, 0xb646a8, 0xc8200154f0, 0xc820185668, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.5.1/libexec/src/path/filepath/path.go:374 +0x4fc\r\npath/filepath.walk(0xc8204a6e00, 0x34b, 0xb646a8, 0xc820014500, 0xc820185668, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.5.1/libexec/src/path/filepath/path.go:374 +0x4fc\r\npath/filepath.walk(0xc820225180, 0x347, 0xb646a8, 0xc8203700f0, 0xc820185668, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.5.1/libexec/src/path/filepath/path.go:374 +0x4fc\r\npath/filepath.walk(0xc820438380, 0x343, 0xb646a8, 0xc8203fa230, 0xc820185668, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.5.1/libexec/src/path/filepath/path.go:374 +0x4fc\r\npath/filepath.walk(0xc820481180, 0x33b, 0xb646a8, 0xc82033f400, 0xc820185668, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.5.1/libexec/src/path/filepath/path.go:374 +0x4fc\r\npath/filepath.walk(0xc82047ea80, 0x337, 0xb646a8, 0xc82033f360, 0xc820185668, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.5.1/libexec/src/path/filepath/path.go:374 +0x4fc\r\npath/filepath.walk(0xc82029aa80, 0x333, 0xb646a8, 0xc820382000, 0xc820185668, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.5.1/libexec/src/path/filepath/path.go:374 +0x4fc\r\npath/filepath.walk(0xc82034c700, 0x32b, 0xb646a8, 0xc8203fba90, 0xc820185668, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.5.1/libexec/src/path/filepath/path.go:374 +0x4fc\r\npath/filepath.walk(0xc8205c2000, 0x327, 0xb646a8, 0xc8203fb810, 0xc820185668, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.5.1/libexec/src/path/filepath/path.go:374 +0x4fc\r\npath/filepath.walk(0xc8202d3b00, 0x2e7, 0xb646a8, 0xc820014be0, 0xc820185668, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.5.1/libexec/src/path/filepath/path.go:374 +0x4fc\r\npath/filepath.walk(0xc8201f2900, 0x2e3, 0xb646a8, 0xc8203fb4f0, 0xc820185668, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.5.1/libexec/src/path/filepath/path.go:374 +0x4fc\r\npath/filepath.walk(0xc82019c900, 0x2db, 0xb646a8, 0xc8203fa320, 0xc820185668, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.5.1/libexec/src/path/filepath/path.go:374 +0x4fc\r\npath/filepath.walk(0xc820356c00, 0x2d3, 0xb646a8, 0xc8200149b0, 0xc820185668, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.5.1/libexec/src/path/filepath/path.go:374 +0x4fc0, 0x0)\r\n\t/usr/local/Cellar/go/1.5.1/libexec/src/path/filepath/path.go:374 +0x4fc\r\npath/filepath.walk(0xc820173a00, 0x1f7, 0xb646a8, 0xc82033f540, 0xc820185668, 0x0, 0x0)\r\n............\r\ngoroutine 17 [syscall, locked to thread]:\r\nruntime.goexit()\r\n\t/usr/local/Cellar/go/1.5.1/libexec/src/runtime/asm_amd64.s:1696 +0x1\r\n\r\ngoroutine 5 [syscall]:\r\nos/signal.loop()\r\n\t/usr/local/Cellar/go/1.5.1/libexec/src/os/signal/signal_unix.go:22 +0x18\r\ncreated by os/signal.init.1\r\n\t/usr/local/Cellar/go/1.5.1/libexec/src/os/signal/signal_unix.go:28 +0x37\r\n\r\n\r\nHowever it doesnot panic if the destination path is some other folder outside the revel path"},"comment":{"url":"https://api.github.com/repos/revel/cmd/issues/comments/225460908","html_url":"https://github.com/revel/cmd/issues/36#issuecomment-225460908","issue_url":"https://api.github.com/repos/revel/cmd/issues/36","id":225460908,"user":{"login":"PradheepShrinivasan","id":3962400,"avatar_url":"https://avatars.githubusercontent.com/u/3962400?v=3","gravatar_id":"","url":"https://api.github.com/users/PradheepShrinivasan","html_url":"https://github.com/PradheepShrinivasan","followers_url":"https://api.github.com/users/PradheepShrinivasan/followers","following_url":"https://api.github.com/users/PradheepShrinivasan/following{/other_user}","gists_url":"https://api.github.com/users/PradheepShrinivasan/gists{/gist_id}","starred_url":"https://api.github.com/users/PradheepShrinivasan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PradheepShrinivasan/subscriptions","organizations_url":"https://api.github.com/users/PradheepShrinivasan/orgs","repos_url":"https://api.github.com/users/PradheepShrinivasan/repos","events_url":"https://api.github.com/users/PradheepShrinivasan/events{/privacy}","received_events_url":"https://api.github.com/users/PradheepShrinivasan/received_events","type":"User","site_admin":false},"created_at":"2016-06-12T21:15:54Z","updated_at":"2016-06-12T21:15:54Z","body":"@jeevatkm  I tested it and its now working fine :) \r\n\r\nBeen busy last week so could not reply earlier"}}
{"actor":{"display_login":"PradheepShrinivasan"}}