matryer / moq

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

Recursively check unique pkg names against existing imports #186

Closed sudo-suhas closed 1 year ago

sudo-suhas commented 1 year 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 1 year 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 1 year ago

Released in v0.3.0 🎉