aspect-build / aspect-build/aspect-cli

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

Open
#1,245 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Starlark
Stars
165
Forks
45
Avg merge
1d 47m
Merged PRs (30d)
35

Description

### 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](https://github.com/aspect-build/aspect-cli/blob/633dded9015dcf3423b156e99a41ca832bf2c003/crates/aspect-cli/src/builtins/aspect/lint.axl#L868) 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

```shell

```

### Any other information?

_No response_

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked section of crates/aspect-cli/src/builtins/aspect/lint.axl and inspect how aspect lint handles --remote_cache from user.bazelrc. Reproduce with the reported aspect-cli and Bazel versions, then determine why lint waits for the remote-cache download; done means the command no longer hangs or emits the warning in the affected setup.

Written by the indexing model from the issue text.

Assessment

Domain
build-system, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.