Go-ipfs: Directly importing `github.com/ipfs/go-ipfs/repo/config` causes `dep init` and `dep ensure` to fail

Created on 22 Jun 2018  路  6Comments  路  Source: ipfs/go-ipfs

Version Information

go-ipfs version: 0.4.16-dev-2a9de81
Repo version: 7
System version: amd64/linux
Golang version: go1.10.2

Type:

Bug
Relates to #5145 #5147
Possibly related to #5144

Description

When directly importing the config package github.com/ipfs/go-ipfs/repo/config it will cause failures when running dep init or dep ensure, and I believe this is due to an improperly imported dependency of repo/config and is a similar issue/resolution to #5144

Here is an example error message from running dep ensure -v

Solving failure: No versions of github.com/ipfs/go-ipfs met constraints:
    master: "github.com/ipfs/go-ipfs/repo/config" imports "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/mitchellh/go-homedir", which contains malformed code: no package exists at "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/mitchellh/go-homedir"
not our bug

All 6 comments

I don't know what dep is talking about. @sdboyer any idea whats going on here?

I have a temporary work around, which is updating Gopkg.toml with
ignored = ["github.com/ipfs/go-ipfs/repo/config"]

sorry, been occupied! This actually should be resolved in the latest dep, in https://github.com/golang/dep/pull/1921. The issue was that we were basically pretending that Godeps dirs didn't exist. It was unnecessarily harsh to do so, and wasn't really adding anything.

Ah, great! Thanks for the response, keep hackin away at it :)

@postables has this been fixed?

@Stebalien sorry for the late reply! My previous message before this edit is irrelevant as I forgot to update dep before trying again :man_facepalming: This issue now seems to be resolved.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jonchoi picture jonchoi  路  3Comments

kallisti5 picture kallisti5  路  3Comments

zignig picture zignig  路  3Comments

funkyfuture picture funkyfuture  路  3Comments

magik6k picture magik6k  路  3Comments