Я использую сторонние пакеты в golang и хочу добавить их в свой git-репозиторий, и когда я набираю команду git add .
, выдается следующая ошибка
warning: adding embedded git repository: github.com/beorn7/perks
hint: You've added another git repository inside your current repository.
hint: Clones of the outer repository will not contain the contents of
hint: the embedded repository and will not know how to obtain it.
hint: If you meant to add a submodule, use:
hint:
hint: git submodule add <url> github.com/beorn7/perks
hint:
hint: If you added this path by mistake, you can remove it from the
hint: index with:
hint:
hint: git rm --cached github.com/beorn7/perks
hint:
Как убедиться,что я правильно управляю версиями пакетов и правильно ли я управляю версиями своих сторонних пакетов?
Вот структура моего проекта
Project/
|
src/
|
github.com/
|
packages/
Моя GOPATH также указывает на проекткаталог