This repository was archived by the owner on Sep 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1k
This repository was archived by the owner on Sep 9, 2020. It is now read-only.
malformed code: no package exists at [...] #1822
Copy link
Copy link
Closed
Description
What version of dep
are you using (dep version
)?
dep:
version : v0.4.1
build date : 2018-01-24
git hash : 37d9ea0a
go version : go1.9.1
go compiler : gc
platform : linux/amd64
What dep
command did you run?
Place this Go file in a folder somewhere:
package main
import (
"context"
"fmt"
"io/ioutil"
"log"
"github.com/ipsn/go-ipfs/core"
"github.com/ipsn/go-ipfs/core/coreunix"
)
func main() {
node, err := core.NewNode(context.TODO(), &core.BuildCfg{Online: true})
if err != nil {
log.Fatalf("Failed to start IPFS node: %v", err)
}
reader, err := coreunix.Cat(context.TODO(), node, "QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB")
if err != nil {
log.Fatalf("Failed to look up IPFS welcome page: %v", err)
}
blob, err := ioutil.ReadAll(reader)
if err != nil {
log.Fatalf("Failed to retrieve IPFS welcome page: %v", err)
}
fmt.Println(string(blob))
}
Initialize dep, which should pull the dependencies:
$ dep init -v
What did you expect to see?
Successfully resolving the dependency tree.
What did you see instead?
Getting direct dependencies...
Checked 1 directories for packages.
Found 1 direct dependencies.
Root project is "github.com/ipsn/demo"
1 transitively valid internal packages
2 external packages imported from 1 projects
(0) ✓ select (root)
(1) ? attempt github.com/ipsn/go-ipfs with 2 pkgs; 2 versions to try
(1) try github.com/ipsn/go-ipfs@master
(1) ✗ "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"
(1) try github.com/ipsn/go-ipfs@ungx
(2) ✗ github.com/ipsn/go-ipfs at ungx has problem subpkg(s):
(2) github.com/ipsn/go-ipfs/core/coreunix is missing; required by (root). github.com/ipsn/go-ipfs/core is missing; required by (root).
(1) ← no more versions of github.com/ipsn/go-ipfs to try; begin backtrack
✗ solving failed
Solver wall times by segment:
b-source-exists: 7.740598652s
b-list-pkgs: 498.04682ms
b-gmal: 286.891942ms
satisfy: 11.97477ms
new-atom: 68.956µs
select-root: 40.254µs
other: 14.663µs
b-list-versions: 9.488µs
b-deduce-proj-root: 2.318µs
TOTAL: 8.537647863s
init failed: unable to solve the dependency graph: Solving failure: No versions of github.com/ipsn/go-ipfs met constraints:
master: "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"
ungx: Could not introduce github.com/ipsn/go-ipfs@ungx due to multiple problematic subpackages:
Subpackage github.com/ipsn/go-ipfs/core is missing. (Package is required by (root).) Subpackage github.com/ipsn/go-ipfs/core/coreunix is missing. (Package is required by (root).)
The 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 .
Note, vendoring the dependencies via govendor
works correctly. https://github.com/ipsn/go-ipfs#proper-dependencies
mattayes
Metadata
Metadata
Assignees
Labels
No labels