Skip to content

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

Description

@vito

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions