New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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: |
I appear unable to reproduce this in the latest version of
(whereas before, this produced a Furthermore, the test cases I introduced in https://go-review.googlesource.com/c/exp/+/310369 no longer fail, after having the CL rebased to head. edit: On second inspection, the tests-passing might be related to #45892. Should have an answer soon, but for now would trust real world experimentation more. @carnott-snap , could you confirm that you still see this issue after upgrading to the latest |
Another update: after https://go-review.googlesource.com/c/exp/+/318029, I am now able to see test errors again. Will continue working on this. |
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: