You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My main repo depens on k8s repo, both my repo and k8s depens on glog. If I don't delete the vendor directory in k8s repo, eg. vendor/k8s.io/kubernetes/vendor/, my program will run into the following error:
Here is the output of compiling. glog linked twice from git.code.oa.com/gaiastack/galaxy/vendor/github.com/golang/glog and git.code.oa.com/gaiastack/galaxy/vendor/k8s.io/kubernetes/vendor/github.com/golang/glog.
But if I delete vendor/k8s.io/kubernetes/vendor, k8s repo becomes dirty.
chenchun:galaxy (open-2.0.2) $ rm -rf vendor/k8s.io/kubernetes/vendor/
chenchun:galaxy (open-2.0.2) $ git st
git On branch open-2.0.2
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
(commit or discard the untracked or modified content in submodules)
modified: vendor/k8s.io/kubernetes (modified content)
rm -rf vendor/k8s.io/kubernetes/vendor
git update-index --assume-unchanged vendor/k8s.io/kubernetes
# track the changes again before update a dependency
git update-index --no-assume-unchanged vendor/k8s.io/kubernetes
My main repo depens on k8s repo, both my repo and k8s depens on glog. If I don't delete the vendor directory in k8s repo, eg.
vendor/k8s.io/kubernetes/vendor/
, my program will run into the following error:Here is the output of compiling. glog linked twice from
git.code.oa.com/gaiastack/galaxy/vendor/github.com/golang/glog
andgit.code.oa.com/gaiastack/galaxy/vendor/k8s.io/kubernetes/vendor/github.com/golang/glog
.The text was updated successfully, but these errors were encountered: