Closed RangelReale closed 1 year ago
@LandonTClipp had to add the type to the addPackageImportWithName
to be able to differentiate between them, I only replace if this parameter is not nil. Also added some specifity rule to check replaces with types first.
@rkoehl05 can you see if this fixes your problem?
All modified lines are covered by tests :white_check_mark:
Comparison is base (
f54eea9
) 74.88090% compared to head (ee33b3d
) 74.91349%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Thanks @RangelReale! I tested with my reproducer and I was able to generate a working mock.
@RangelReale thanks so much for this. I converted this to a draft because you mentioned this is still a WIP. Please ping me when you're ready for me to review.
@RangelReale thanks so much for this. I converted this to a draft because you mentioned this is still a WIP. Please ping me when you're ready for me to review.
@LandonTClipp I updated the description, it should be ready now.
@RangelReale if you could squash the commits down to one, we can merge away.
@RangelReale if you could squash the commits down to one, we can merge away.
rebased to master, see if this is ok.
Thank you very much for getting this out. I lean heavily on people submitting PRs ❤️
Description
When different packages that map to the same source package and mapped with replace-type, the package of the first one are used for all other packages.
Type of change
Version of Golang used when building/testing:
How Has This Been Tested?
Checklist