Skip to content

cue_repository references invalid gazelle instance #7

@uhthomas

Description

@uhthomas

The following snippet

load("@com_github_tnarg_rules_cue//cue:cue.bzl", "cue_repository")

cue_repository(
    name = "io_k8s_api_cue",
    importpath = "k8s.io/api",
    sha256 = "dea282ac2d4abc7018d943a70d6a4381f38dd0558fd06ab15d135f22f012b34a",
    urls = ["https://github.com/kubernetes/api/archive/6c086a5e99d580d4cb60ffda862cb42683818f8f.zip"],
)

produces

bazel build @io_k8s_api_cue//...
INFO: SHA256 (https://github.com/kubernetes/api/archive/6c086a5e99d580d4cb60ffda862cb42683818f8f.zip) = dea282ac2d4abc7018d943a70d6a4381f38dd0558fd06ab15d135f22f012b34a
INFO: SHA256 (https://github.com/kubernetes/api/archive/6c086a5e99d580d4cb60ffda862cb42683818f8f.zip) = dea282ac2d4abc7018d943a70d6a4381f38dd0558fd06ab15d135f22f012b34a
INFO: Repository io_k8s_api_cue instantiated at:
  /home/thomas/code/github.com/uhthomas/automata/WORKSPACE:62:15: in <toplevel>
Repository rule cue_repository defined at:
  /home/thomas/.cache/bazel/_bazel_thomas/5ced9b658c4071801666548792308eaf/external/com_github_tnarg_rules_cue/cue/cue.bzl:418:33: in <toplevel>
ERROR: An error occurred during the fetch of repository 'io_k8s_api_cue':
   Traceback (most recent call last):
        File "/home/thomas/.cache/bazel/_bazel_thomas/5ced9b658c4071801666548792308eaf/external/com_github_tnarg_rules_cue/cue/cue.bzl", line 367, column 27, in _cue_repository_impl
                gazelle = ctx.path(Label(_gazelle))
Error in path: Not a regular file: /home/thomas/.cache/bazel/_bazel_thomas/5ced9b658c4071801666548792308eaf/external/com_github_tnarg_rules_cue/gazelle_binary
ERROR: Error fetching repository: Traceback (most recent call last):
        File "/home/thomas/.cache/bazel/_bazel_thomas/5ced9b658c4071801666548792308eaf/external/com_github_tnarg_rules_cue/cue/cue.bzl", line 367, column 27, in _cue_repository_impl
                gazelle = ctx.path(Label(_gazelle))
Error in path: Not a regular file: /home/thomas/.cache/bazel/_bazel_thomas/5ced9b658c4071801666548792308eaf/external/com_github_tnarg_rules_cue/gazelle_binary
ERROR: Not a regular file: /home/thomas/.cache/bazel/_bazel_thomas/5ced9b658c4071801666548792308eaf/external/com_github_tnarg_rules_cue/gazelle_binary
INFO: Elapsed time: 4.117s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)

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