You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 16, 2022. It is now read-only.
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?