matryer / moq

Interface mocking tool for go generate
http://bit.ly/meetmoq
MIT License
2k stars 127 forks source link

Recursively check unique pkg names against existing imports #186

Closed sudo-suhas closed 2 years ago

sudo-suhas commented 2 years ago

When we generate a unique name for pkg a on conflict with pkg b, the new name could already be in use for pkg c. So recursively check each unique name against existing imports before setting it.

Closes #184

/cc @cldmstr

sudo-suhas commented 2 years ago

@matryer @breml will wait for your review until this weekend to merge this change. Will tag and release v0.3.0 post that.

sudo-suhas commented 2 years ago

Released in v0.3.0 🎉