{"action":"opened","issue":{"url":"https://api.github.com/repos/golang/dep/issues/1822","repository_url":"https://api.github.com/repos/golang/dep","labels_url":"https://api.github.com/repos/golang/dep/issues/1822/labels{/name}","comments_url":"https://api.github.com/repos/golang/dep/issues/1822/comments","events_url":"https://api.github.com/repos/golang/dep/issues/1822/events","html_url":"https://github.com/golang/dep/issues/1822","id":316225230,"number":1822,"title":"malformed code: no package exists at [...]","user":{"login":"karalabe","id":129561,"avatar_url":"https://avatars2.githubusercontent.com/u/129561?v=4","gravatar_id":"","url":"https://api.github.com/users/karalabe","html_url":"https://github.com/karalabe","followers_url":"https://api.github.com/users/karalabe/followers","following_url":"https://api.github.com/users/karalabe/following{/other_user}","gists_url":"https://api.github.com/users/karalabe/gists{/gist_id}","starred_url":"https://api.github.com/users/karalabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karalabe/subscriptions","organizations_url":"https://api.github.com/users/karalabe/orgs","repos_url":"https://api.github.com/users/karalabe/repos","events_url":"https://api.github.com/users/karalabe/events{/privacy}","received_events_url":"https://api.github.com/users/karalabe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-20T11:07:02Z","updated_at":"2018-04-20T11:07:02Z","closed_at":null,"author_association":"NONE","body":"### What version of `dep` are you using (`dep version`)?\r\n```\r\ndep:\r\n version     : v0.4.1\r\n build date  : 2018-01-24\r\n git hash    : 37d9ea0a\r\n go version  : go1.9.1\r\n go compiler : gc\r\n platform    : linux/amd64\r\n```\r\n\r\n### What `dep` command did you run?\r\n\r\nPlace this Go file in a folder somewhere:\r\n\r\n```go\r\npackage main\r\n\r\nimport (\r\n\t\"context\"\r\n\t\"fmt\"\r\n\t\"io/ioutil\"\r\n\t\"log\"\r\n\r\n\t\"github.com/ipsn/go-ipfs/core\"\r\n\t\"github.com/ipsn/go-ipfs/core/coreunix\"\r\n)\r\n\r\nfunc main() {\r\n\tnode, err := core.NewNode(context.TODO(), &core.BuildCfg{Online: true})\r\n\tif err != nil {\r\n\t\tlog.Fatalf(\"Failed to start IPFS node: %v\", err)\r\n\t}\r\n\treader, err := coreunix.Cat(context.TODO(), node, \"QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB\")\r\n\tif err != nil {\r\n\t\tlog.Fatalf(\"Failed to look up IPFS welcome page: %v\", err)\r\n\t}\r\n\tblob, err := ioutil.ReadAll(reader)\r\n\tif err != nil {\r\n\t\tlog.Fatalf(\"Failed to retrieve IPFS welcome page: %v\", err)\r\n\t}\r\n\tfmt.Println(string(blob))\r\n}\r\n```\r\n\r\nInitialize dep, which should pull the dependencies:\r\n\r\n```\r\n$ dep init -v\r\n```\r\n\r\n### What did you expect to see?\r\n\r\nSuccessfully resolving the dependency tree.\r\n\r\n### What did you see instead?\r\n\r\n```\r\nGetting direct dependencies...\r\nChecked 1 directories for packages.\r\nFound 1 direct dependencies.\r\nRoot project is \"github.com/ipsn/demo\"\r\n 1 transitively valid internal packages\r\n 2 external packages imported from 1 projects\r\n(0)   ✓ select (root)\r\n(1)\t? attempt github.com/ipsn/go-ipfs with 2 pkgs; 2 versions to try\r\n(1)\t    try github.com/ipsn/go-ipfs@master\r\n(1)\t✗   \"github.com/ipsn/go-ipfs/core\" transitively (through 6 packages) imports \"github.com/ipsn/go-ipfs/gxlibs/github.com/whyrusleeping/go-notifier/Godeps/_workspace/src/github.com/jbenet/goprocess\", which contains malformed code: no package exists at \"github.com/ipsn/go-ipfs/gxlibs/github.com/whyrusleeping/go-notifier/Godeps/_workspace/src/github.com/jbenet/goprocess\"\r\n(1)\t    try github.com/ipsn/go-ipfs@ungx\r\n(2)\t✗   github.com/ipsn/go-ipfs at ungx has problem subpkg(s):\r\n(2)\t  \tgithub.com/ipsn/go-ipfs/core/coreunix is missing; required by (root).\tgithub.com/ipsn/go-ipfs/core is missing; required by (root).\r\n(1)\t  ← no more versions of github.com/ipsn/go-ipfs to try; begin backtrack\r\n  ✗ solving failed\r\n\r\nSolver wall times by segment:\r\n     b-source-exists: 7.740598652s\r\n         b-list-pkgs:  498.04682ms\r\n              b-gmal: 286.891942ms\r\n             satisfy:   11.97477ms\r\n            new-atom:     68.956µs\r\n         select-root:     40.254µs\r\n               other:     14.663µs\r\n     b-list-versions:      9.488µs\r\n  b-deduce-proj-root:      2.318µs\r\n\r\n  TOTAL: 8.537647863s\r\n\r\ninit failed: unable to solve the dependency graph: Solving failure: No versions of github.com/ipsn/go-ipfs met constraints:\r\n\tmaster: \"github.com/ipsn/go-ipfs/core\" transitively (through 6 packages) imports \"github.com/ipsn/go-ipfs/gxlibs/github.com/whyrusleeping/go-notifier/Godeps/_workspace/src/github.com/jbenet/goprocess\", which contains malformed code: no package exists at \"github.com/ipsn/go-ipfs/gxlibs/github.com/whyrusleeping/go-notifier/Godeps/_workspace/src/github.com/jbenet/goprocess\"\r\n\tungx: Could not introduce github.com/ipsn/go-ipfs@ungx due to multiple problematic subpackages:\r\n\tSubpackage github.com/ipsn/go-ipfs/core is missing. (Package is required by (root).)\tSubpackage github.com/ipsn/go-ipfs/core/coreunix is missing. (Package is required by (root).)\r\n```\r\n\r\nThe interesting error here is `no package exists at \"github.com/ipsn/go-ipfs/gxlibs/github.com/whyrusleeping/go-notifier/Godeps/_workspace/src/github.com/jbenet/goprocess\"`. I'm fairly sure there's nothing wrong with that package: https://github.com/ipsn/go-ipfs/tree/master/gxlibs/github.com/whyrusleeping/go-notifier/Godeps/_workspace/src/github.com/jbenet/goprocess .\r\n\r\n*Note, vendoring the dependencies via `govendor` works correctly. https://github.com/ipsn/go-ipfs#proper-dependencies*"}}
{"actor":{"display_login":"karalabe"}}