aspect-build/aspect-cli

[Bug]: `bazel lint //...` leads to `No aspects enabled for linting. ...` even though config.yaml file exists

Closed this issue · 1 comments

What happened?

Running bazel lint //... leads to

No aspects enabled for linting.
                
Add a section like the following to your .aspect/cli/config.yaml:

lint:
  aspects:
    - //tools:lint.bzl%eslint

Running bazel lint --aspect:config "$(pwd)/.aspect/cli/config.yaml" //... from the same directory, the root of the Bazel monorepo, works.

Version

Development (host): Ubuntu 18.04

Output of bazel --version: aspect 5.8.20

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

Language(s) and/or frameworks involved: not sure if relevant, the bazel lint command doesn't seem to properly locate the configuration file.

How to reproduce

No response

Any other information?

No response

Moved to #677 as it seemed more appropriate.