matryer / moq

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

Moq fails when encountering new golang idioms #224

Closed arkadiuszos4chain closed 3 weeks ago

arkadiuszos4chain commented 3 weeks ago

Hello ;-)

The current version of moq fails when encountering certain statements, such as:

for range 5 {
  // ...
}

which results in the following error:

couldn't load source package: sample.go:110:12: cannot range over 5 (untyped int constant)

I prepared a PR to bump the go and golang.org/x/tools version: #223

arkadiuszos4chain commented 3 weeks ago

I see the PR has already been merged, thank you ;-) What is your plan for releasing the new version of moq?

arkadiuszos4chain commented 3 weeks ago

@sudo-suhas

sudo-suhas commented 3 weeks ago

I was a bit busy yesterday and could not release a new version from mobile. Will create a new release today.

sudo-suhas commented 3 weeks ago

Fixed via https://github.com/matryer/moq/releases/tag/v0.4.0 🎉

arkadiuszos4chain commented 3 weeks ago

Great! Thank you