Skip to content
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

Moq fails when encountering new golang idioms #224

Closed
arkadiuszos4chain opened this issue Aug 21, 2024 · 5 comments
Closed

Moq fails when encountering new golang idioms #224

arkadiuszos4chain opened this issue Aug 21, 2024 · 5 comments

Comments

@arkadiuszos4chain
Copy link
Contributor

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
Copy link
Contributor Author

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

@arkadiuszos4chain
Copy link
Contributor Author

@sudo-suhas

@sudo-suhas
Copy link
Collaborator

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

@sudo-suhas
Copy link
Collaborator

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

@arkadiuszos4chain
Copy link
Contributor Author

Great! Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants