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
$ ls
lib.go lib_darwin.go lib_linux.go
$ head -1 lib_darwin.go
package lib # no build tags
$ head -1 lib_linux.go
package lib # no build tags
$ go build *.go
#some error about same function defined twice
$ go build && echo $?
0
The text was updated successfully, but these errors were encountered:
ghost
changed the title
cmd/go: go build *.go does not verify for file suffixes
cmd/go: go build *.go does not account for file suffixes
Aug 23, 2016
This is working as expected. If you explicitly list the files to build, the go tool builds exactly those files. Build constraints only apply when looking at an entire package in a directory.
go version go1.7 darwin/amd64
The text was updated successfully, but these errors were encountered: