Skip to content
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

Directly importing github.com/ipfs/go-ipfs/repo/config causes dep init and dep ensure to fail #5148

Closed
bonedaddy opened this issue Jun 22, 2018 · 6 comments

Comments

@bonedaddy
Copy link
Contributor

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"
@whyrusleeping
Copy link
Member

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

@bonedaddy
Copy link
Contributor Author

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

@sdboyer
Copy link

sdboyer commented Jul 13, 2018

sorry, been occupied! This actually should be resolved in the latest dep, in golang/dep#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.

@whyrusleeping
Copy link
Member

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

@Stebalien
Copy link
Member

@postables has this been fixed?

@bonedaddy
Copy link
Contributor Author

bonedaddy commented Sep 3, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants