-
Notifications
You must be signed in to change notification settings - Fork 412
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
Fixed bug in inpkg where generated source would import itself #143
Conversation
@codeactual @evanphx could i get you guys to take a look at this? Trying to get master into a better state |
Future commits for #144 probably belong in this PR instead because the new tests would verify the fix. Does inpkg need more coverage, unrelated to import cycles, to assert its general behavior after this patch? One initial thought on the commit: some comments on the changed |
|
I was curious if, in your opinion, more tests are needed in general to reduce inpkg regressions (that might even result from this fix). I've only taken a closer look a very small portion of the GeneratorSuite, so I don't have an opinion. This issue raised the question of whether #141 was sort of bound to happen at some point because there wasn't good enough coverage historically.
I think there's plenty of time for it. You were already quick to provide a patch for anyone with an urgent need. I think it's reasonable for everyone else to wait for a verified one. |
added a test to catch the import cycle |
I do agree with the statement that "#141 was sort of bound to happen at some point," so adding additional testing for inpkg generation is likely needed. However I am not sure how we would want to go about adding those tests. There are about a million different cases that are being tested by that suite, so I certainly wouldn't advocate for verifying every case again for inpkg mode. What might make more sense to me would be adding an inpkg run to the integration target and asserting that the package still builds after running mockery |
Yep. I was not advocating to multiply the coverage or something ("million different cases") for the inpkg scenario. This was my only concern:
If the new test is sufficient, that is ideal. |
Sorry about the delay! Thanks for the fix |
Fixes import cycle bug when doing inpkg generation
See: #141