{"action":"created","issue":{"url":"https://api.github.com/repos/qur/withmock/issues/57","repository_url":"https://api.github.com/repos/qur/withmock","labels_url":"https://api.github.com/repos/qur/withmock/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/qur/withmock/issues/57/comments","events_url":"https://api.github.com/repos/qur/withmock/issues/57/events","html_url":"https://github.com/qur/withmock/issues/57","id":141158123,"number":57,"title":"Fails for packages with \"internal\" imports","user":{"login":"sandlerben","id":4823572,"avatar_url":"https://avatars.githubusercontent.com/u/4823572?v=3","gravatar_id":"","url":"https://api.github.com/users/sandlerben","html_url":"https://github.com/sandlerben","followers_url":"https://api.github.com/users/sandlerben/followers","following_url":"https://api.github.com/users/sandlerben/following{/other_user}","gists_url":"https://api.github.com/users/sandlerben/gists{/gist_id}","starred_url":"https://api.github.com/users/sandlerben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandlerben/subscriptions","organizations_url":"https://api.github.com/users/sandlerben/orgs","repos_url":"https://api.github.com/users/sandlerben/repos","events_url":"https://api.github.com/users/sandlerben/events{/privacy}","received_events_url":"https://api.github.com/users/sandlerben/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-16T02:55:54Z","updated_at":"2016-04-09T16:03:41Z","closed_at":null,"body":"### Steps to reproduce:\r\n\r\n1. `go get https://github.com/hack4impact/audio-transcription-service`\r\n2. `cd $GOPATH/src/github.com/hack4impact/audio-transcription-service`\r\n3. `git checkout 0b860e525f69e9a5aea82a52a0040faf34503ed9`\r\n3. `mocktest -work ./...`\r\n\r\nExpected:\r\n\r\n- mocktest runs correctly\r\n\r\nActual:\r\n\r\n- The following error is output\r\n```\r\nERROR: Failed to install '_et/http': exit status 1\r\noutput:\r\npackage _et/http\r\n\timports internal/golang.org/x/net/http2/hpack: use of internal package not allowed\r\n```\r\n\r\n### What might be the problem?\r\n\r\nI took a look at the temporary work directory and the file at `path/src/_et/http/http_ifmocks.go` has the following import:\r\n\r\n```go\r\nimport (\r\n    ...\r\n    hpack \"internal/golang.org/x/net/http2/hpack\"\r\n)\r\n```\r\n\r\nI think the error is one of two things:\r\n* This copy of the http library doesn't have permission to use the internal package.\r\n* The package `internal/golang.org/x/net/http2/hpack` isn't copied by withmock.\r\n\r\nHowever, I do not have a very good idea of what the problem is. I would appreciate if someone could clarify if I did something wrong or if there is a bug with withmock."},"comment":{"url":"https://api.github.com/repos/qur/withmock/issues/comments/207812969","html_url":"https://github.com/qur/withmock/issues/57#issuecomment-207812969","issue_url":"https://api.github.com/repos/qur/withmock/issues/57","id":207812969,"user":{"login":"sandlerben","id":4823572,"avatar_url":"https://avatars.githubusercontent.com/u/4823572?v=3","gravatar_id":"","url":"https://api.github.com/users/sandlerben","html_url":"https://github.com/sandlerben","followers_url":"https://api.github.com/users/sandlerben/followers","following_url":"https://api.github.com/users/sandlerben/following{/other_user}","gists_url":"https://api.github.com/users/sandlerben/gists{/gist_id}","starred_url":"https://api.github.com/users/sandlerben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandlerben/subscriptions","organizations_url":"https://api.github.com/users/sandlerben/orgs","repos_url":"https://api.github.com/users/sandlerben/repos","events_url":"https://api.github.com/users/sandlerben/events{/privacy}","received_events_url":"https://api.github.com/users/sandlerben/received_events","type":"User","site_admin":false},"created_at":"2016-04-09T16:03:41Z","updated_at":"2016-04-09T16:03:41Z","body":"@qur have you gotten a chance to look at this?"}}