Skip to content

Dependency not satisfied: github.com/pkg/errors #56

@valorad

Description

@valorad

Hello I am new to go programming. When I import github.com/machinebox/graphql in a go file, then run go mod tidy, the following stuff appears in console

github.com/my/project/server imports
        github.com/machinebox/graphql imports
        github.com/pkg/errors: module github.com/pkg/errors@latest found (v0.9.1), but does not contain package github.com/pkg/errors

It indicates that the dependency of pkg/errors is not satisfied. Go won't let me compile this file either, as same thing happens.

I guess it requires explicitly import at graphql.go Line42.

Like this?

"github.com/pkg/errors@v0.9.1"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions