文章目录
报错
unexpected directory layout:
import path: github.com/gogo/protobuf/proto
root: D:\SoftwareAndProgram\program\Go\Development\src
dir: D:\SoftwareAndProgram\program\Go\Development\src\k8s.io\kubernetes\vendor\github.com\gogo\protobuf\proto
expand root: D:\SoftwareAndProgram\program\Go\Development\src
expand dir: D:\SoftwareAndProgram\program\Go\Development\src\k8s.io\kubernetes\vendor\github.com\gogo\protobuf\proto
separator: \
解决
将原来的vendor
目录修改为vendor1
,将下面的内容放到一个tempvendor/src
目录下:
将tempvendor/src
目录添加到GoLand
的GOPATH
中: