New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build project error #539
Comments
Please read the documentation: https://cluster.ipfs.io/documentation/download/#installing-from-source .You should run |
Sorry, I was too harsh here. |
@hsanjuan,i have a suggestion, it is better to use package which same as the package on github. |
@tututt what do you mean? |
@hsanjuan Now in ipfs-cluster project, it import package like this: ""github.com/ipfs/go-ipfs-cmdkit/files"", after "make install", it change to "manet "gx/ipfs/QmV6FjemM1K8oXjrvuq3wuVWWoU2TLDPmNnKrxHzY3v6Ai/go-multiaddr-net". Why use the first one package |
@tututt we use gx to fix our dependencies. Gx works by rewriting import paths to those of the fixed dependency. go-ipfs-cmdkit will be rewritten into something else, and probably placed in a different line as before (because of gofmt). This allows to be sure that the project can always be built. Something that does not always work without rewriting (like right now, because how the |
@hsanjuan OK, I see |
`make all` assumes that your dependencies are re-written. This can lead to unexpected failures/errors. This commit changes `make all` to update dependencies as well. License: MIT Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
`make all` assumes that your dependencies are re-written. This can lead to unexpected failures/errors. This commit changes `make all` to update dependencies as well. License: MIT Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
`make all` assumes that your dependencies are re-written. This can lead to unexpected failures/errors. This commit changes `make all` to update dependencies as well. License: MIT Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
Resolved with a611190 |
Pre-check
secret
Basic information
which?
which?
Description
I build ipfs-cluster:
go into ipfs-cluster folder,and "make all",then meet that "# github.com/ipfs/ipfs-cluster/api
../../go/src/github.com/ipfs/ipfs-cluster/api/types.go:191:6: cannot use c (type cid.Cid) as type *cid.Cid in field value
../../go/src/github.com/ipfs/ipfs-cluster/api/types.go:258:6: cannot use c (type cid.Cid) as type *cid.Cid in field value
../../go/src/github.com/ipfs/ipfs-cluster/api/types.go:805:12: cannot assign cid.Cid to ref (type *cid.Cid) in multiple assignment
../../go/src/github.com/ipfs/ipfs-cluster/api/types.go:812:6: cannot use c (type cid.Cid) as type *cid.Cid in field value"
and go to "go-cid" project , find that type mismatch,i think go-cid version is run. How to do with it
The text was updated successfully, but these errors were encountered: