x/exp/cmd/gorelease: cannot process package _test files #44440
Comments
if you want a repro; iiuc, the |
cc @jayconrod |
Not sure what the cause is, but I was able to reproduce this at The message comes from gorelease itself when loading packages, and it happens with cc @jadekler |
(will also try to debug this friday if nobody gets there before me!) |
I did some debugging and found the cause: cyclic imports are not considered in
I actually ran into this independently in https://go-review.googlesource.com/c/exp/+/288032, funnily enough. Why is this happening: In the provided repro, there's a module cycle:
So, in Then later in Well, when we run So anyways, the code above basically ignores anything with the same modPath as the base module when doing the I'll work on getting a test out for this, and a better solution. @jayconrod , let me know if you can think of a nicer way to tackle this than my proposal above. It's late on a Friday so I may be missing something obvious. :) |
Change https://golang.org/cl/310369 mentions this issue: |
Change https://golang.org/cl/310809 mentions this issue: |
When I add a test file like:
in a sample module:
gorelease
now starts failing:I can confirm that I did not remove
Yyy
orErrXxx
, and that the the rest of the toolchain can find them, e.g.go doc Yyy
. This may end up being a bug inapidiff
, but I have not dug into the root cause.The text was updated successfully, but these errors were encountered: