Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: list -json includes assembly files among CompiledGoFiles #28749
pushed a commit
Nov 13, 2018
var srcfiles string // .go and non-.go srcfiles = append(srcfiles, gofiles...) srcfiles = append(srcfiles, sfiles...) srcfiles = append(srcfiles, cfiles...) srcfiles = append(srcfiles, cxxfiles...) b.cacheSrcFiles(a, srcfiles)
We should make cmd/go filter out non-Go files.
There's a comment in the go/packages source code, where it manually skips
If we don't fix this for 1.12, we'll have to keep the workaround in go/packages for a long time. And expand it to cover
I'll send a CL to expand the go/packages workaround, but I think it might be good to know how risky it is to fix this yet in cmd/go.