Skip to content

[Bug]: aspect lint hangs when using --remote-cache #1245

Description

@scasagrande

What happened?

I probably missed something or have something misconfigured.

I am currently investigating adopting aspect-cli for my team and exploring what the lint workflow looks like. I have it all setup and working, but if I have --remote_cache enabled in my user.bazelrc file then my aspect lint hangs for 30s with the following:

Waiting for lint reports to finish downloading from the remote cache...
WARNING: Lint file not downloaded 30s after build completed (skipping): /mnt/ephemeral/buildbarn/bb_clientd/cas/steven/blobs/sha256/file/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855-0

Its not hard to find where this is coming from but I am confused as to why I am hitting this. I assume that this should only be running in a specific environment.

Version

Development (host) and target OS/architectures:

macOS 26 aarch64

Output of bazel --version:

Bazelisk version: 1.29.0
Build label: 8.7.0
Build target: @@//src/main/java/com/google/devtools/build/lib/bazel:BazelServer
Build time: Wed May 06 19:01:13 2026 (1778094073)
Build timestamp: 1778094073
Build timestamp as int: 1778094073

Version of the Aspect rules, or other relevant rules from your
WORKSPACE or MODULE.bazel file:

aspect-cli 2026.25.11

bazel_dep(name = "aspect_rules_lint", version = "2.5.2")

.aspect/config.axl

def config(ctx: ConfigContext):
    ctx.tasks["lint"].args.aspects = [
        "//bazel/tools/lint:linters.bzl%clippy",
    ]
    ctx.tasks["format"].args.formatter_target = "//:format"
    ctx.tasks["gazelle"].args.gazelle_target = "//:gazelle"

How to reproduce

Any other information?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions