gbb
gbb copied to clipboard
不包含任何满足条件的go源代码的目录应该跳过编译
假设当前为Linux amd64平台,GOPATH下github.com/voidint/gbb/cmd/test目录下仅包含一个名为main_windows.go的源代码文件,使用gbb编译整个项目,会发生报错: build constraints exclude all Go files in xxxxxx。
test包在排除了main_windows.go文件后,就不包含任何源代码文件了,再去编译此包,就会报错。
https://golang.org/doc/install/source#environment