Skip to content

cycle dependency in nogo and go_context_data #2479

@linzhp

Description

@linzhp

What version of rules_go are you using?

745de50

What version of gazelle are you using?

7e93b118efcdfe63f43057a88711762e0b5d7267

What version of Bazel are you using?

3.0.0

Does this issue reproduce with the latest releases of all the above?

yes

What operating system and processor architecture are you using?

Darwin amd 64

What did you do?

git clone git@github.com:linzhp/bazel_examples.git
cd bazel_examples
git checkout 510e7a2798ab0f3e9cf2b93b06a28a92dad539fd
bazel build //:gazelle

What did you expect to see?

Build completed successfully

What did you see instead?

ERROR: /private/var/tmp/_bazel_zplin/1b23f78923ad6c0028e8aab1a0a6d5fb/external/io_bazel_rules_go/BUILD.bazel:71:1: in go_context_data rule @io_bazel_rules_go//:go_context_data: cycle in dependency graph:
    //:gazelle
    //:gazelle-runner
    @bazel_gazelle//cmd/gazelle:gazelle (host)
.-> @io_bazel_rules_go//:go_context_data (host)
|   @io_bazel_rules_go//:nogo_alias (host)
|   @io_bazel_rules_go//go/config:nogo (host)
|   @io_bazel_rules_nogo//:nogo (host)
|   //:default_nogo (host)
`-- @io_bazel_rules_go//:go_context_data (host)
This cycle occurred because of a configuration option
ERROR: Analysis of target '//:gazelle' failed; build aborted
INFO: Elapsed time: 2.653s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (71 packages loaded, 7044 targets configured)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions