Thanks for thinking about the issue! I should have asked for something more explicit, probably something like this: ; go build listconstraintexclusions buildconstraint_1 excludes: file1.go file2.go file3.go buildconstraint_2 excludes: file4.go file5.go No go files left to build. ;
Iiuc the complexity of creating this list is in P. (I understand my original question was different.) On 3/29/21, Axel Wagner <axel.wagner...@googlemail.com> wrote: > In general, answering that question is NP-complete. It's the boolean > satisfiability > problem <https://en.wikipedia.org/wiki/Boolean_satisfiability_problem>. It > would be possible to implement *some* solution and maybe stop after a > timeout or something. But even then, the answer will not be unique and > might sometimes be less than helpful. > > This doesn't mean we *can't* do it, but the problem is harder than it might > seem. You could file an issue (after searching if someone else suggested it > already, of course :) ). > > On Mon, Mar 29, 2021 at 10:49 AM <fge...@gmail.com> wrote: > >> Is there some functionality to list each build constraint that is not >> satisfied when the result of go get is "build constraints exclude all >> Go files in ..."? >> >> go mod why is very helpful when module dependencies are to be explained. >> A similar functionality would be helpful and maybe a message to refer >> to this functionality when "build constraints exclude all Go files in >> ..." is the conclusion. >> >> (For a random package I've found on pkg.go.dev it took a few confusing >> minutes until I realized that cgo requirement is the build >> constraint.) >> >> On a tangential note: would anybody else be interested to help with >> issue https://github.com/golang/go/issues/39195 ? (Probably all build >> constraints should be searchable.) >> >> -- >> You received this message because you are subscribed to the Google Groups >> "golang-nuts" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to golang-nuts+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/golang-nuts/CA%2Bctqrq1%2BSVDQO3ecgyj7Kq4Qv6-tE3QWFTrVHtNqro8hUCwCw%40mail.gmail.com >> . >> > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CA%2BctqrrBXbCkJSnTLHYggTv8k%2BhJ6FgDnun%3DFrYNRoM6kCKx2w%40mail.gmail.com.