Skip to content
This repository was archived by the owner on May 16, 2022. It is now read-only.
This repository was archived by the owner on May 16, 2022. It is now read-only.

cycled dependency issue #3

@fandw

Description

@fandw

I encountered a cycled dependency while trying to build:

ERROR: /home/dfan/.cache/bazel/_bazel_dfan/fed68e4fa5ba089266f54dd53bbfcf56/external/io_bazel_rules_nogo/BUILD.bazel:3:6: in alias rule @io_bazel_rules_nogo//:nogo: cycle in dependency graph:
//go/src/.../inna/proofofconcept:proofofconcept
@io_bazel_rules_go//:go_context_data
.-> @io_bazel_rules_nogo//:nogo
| //:nogo
| @com_github_sluongng_staticcheck_codegen//_gen/qf1004:go_default_library
| @com_github_sluongng_staticcheck_codegen//_gen/qf1004:qf1004
| @io_bazel_rules_go//:go_context_data
`-- @io_bazel_rules_nogo//:nogo

my BUILD.bazel file in qf1004 looks normal to me:

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

go_library(
name = "qf1004",
srcs = ["analyzer.go"],
importpath = "github.com/sluongng/staticcheck-codegen/_gen/qf1004",
visibility = ["//visibility:public"],
deps = ["@co_honnef_go_tools//quickfix"],
)

alias(
name = "go_default_library",
actual = ":qf1004",
visibility = ["//visibility:public"],
)

I'm not really understanding why it would need to depend on nogo.

In addition: is v0.29.0 a hard requirement for rule_go? What's the reason that it has to be the latest?

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