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