编译kubernetes源码时报错:unexpected directory layout

文章目录

报错

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目录下:
编译kubernetes源码时报错:unexpected directory layout
tempvendor/src目录添加到GoLandGOPATH中:
编译kubernetes源码时报错:unexpected directory layout

上一篇:vscode plugin development


下一篇:CS602 - Data-Driven Development