graphql icon indicating copy to clipboard operation
graphql copied to clipboard

Dependency not satisfied: github.com/pkg/errors

Open valorad opened this issue 4 years ago • 0 comments

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/[email protected]"

valorad avatar Mar 11 '20 01:03 valorad