Godep dependecy error

Hi,

When I am adding new package and running the godep save.Then it is saying that “is not using a known version control system”. Please suggest me what to do to resolve it. As per my understanding, it finds the .git files in every package which is not available as I have to commit the code to GitHub.So until I don’t remove the .git file package does not commit. So please suggest me the solution for it.

Thanks in advance

it finds the .git files in every package which is not available as I have to commit the code to GitHub.

I am not sure if I understand this particular sentence. What exactly is not available?

The message “is not using a known version control system” indicates that Git is not installed, but since you wrote you want to push the code to Github I guess you do have Git installed, right?

Maybe you ran into a bug of Godep; are you using the latest version? There are a couple of issues that contain the error message. The latest of them was raised for v77 of Godep, so you might want to ensure you have a newer version.

Maybe this would be a good time to switch from godep to dep

1 Like

Good point @ptman!

Which makes me wonder… @Nirmal_Singh, have you used Godep before? If so, can you remember what you did around the time when Godep started failing? (E.g. upgraded Godep, installed or removed some Go-related tool, etc.) This could help finding the cause of the error.

If, on the other hand, you are just starting to use a dependency management tool, I think the best is to follow @ptman’s advice and use dep right from the start. This is the tool that will be integrated into the Go toolchain at some point in time and thus will become the standard of dependency tools in Go.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.