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

errors.As usage is broken as of v2.5.9 #280

Open
vito opened this issue Sep 14, 2023 · 0 comments
Open

errors.As usage is broken as of v2.5.9 #280

vito opened this issue Sep 14, 2023 · 0 comments

Comments

@vito
Copy link

vito commented Sep 14, 2023

What happened?

Hiya - we use errors.As here and noticed after bumping to v2.5.9 the error value is just a typed nil.

It looks like this broke with this change because now it's only updating the local var within the As implementation.

What did you expect?

The provided argument is already a pointer (and has to be otherwise you get linting errors), so it should just update it in-place.

Minimal graphql.schema and models to reproduce

versions

  • go list -m github.com/vektah/gqlparser/v2?
    • github.com/vektah/gqlparser/v2 v2.5.9
  • go version?
    • go 1.21
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

1 participant