Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Bazel build fails #157

Open
ndncmnky-andreas opened this issue May 23, 2021 · 0 comments
Open

Bazel build fails #157

ndncmnky-andreas opened this issue May 23, 2021 · 0 comments

Comments

@ndncmnky-andreas
Copy link

ndncmnky-andreas commented May 23, 2021

Hello,

I use Bazel Gazelle to generate BUILD files. It seems Bazel cannot load vektah gqlparser. But I don't have no more ideas how to look into this issue. Maybe the repository isn't compatible because of this "v2" sub folder?

no such package '@com_github_vektah_gqlparser_v2//ast': The repository '@com_github_vektah_gqlparser_v2' could not be resolved and referenced by '//src/graph/generated:generated'

Thank you for your help!

go.mod

require (
	github.com/99designs/gqlgen v0.13.0 // indirect
	github.com/vektah/gqlparser/v2 v2.1.0 // indirect
)

Generated bazel BUILD file in graph/generated

load("@io_bazel_rules_go//go:def.bzl", "go_library")

go_library(
    name = "generated",
    srcs = ["generated.go"],
    importpath = "src/graph/generated",
    visibility = ["//visibility:public"],
    deps = [
        "//src/graph/model",
        "@com_github_99designs_gqlgen//graphql:go_default_library",
        "@com_github_99designs_gqlgen//graphql/introspection:go_default_library",
        "@com_github_vektah_gqlparser_v2//:go_default_library",
        "@com_github_vektah_gqlparser_v2//ast:go_default_library",
    ],
)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant