In our pipeline, we use the CLI Orb to define an executor, and then use that executor in jobs. Interestingly, we've found v1.2 of the VS Code extension warns us that the CLI orb is unused. But if we remove it, then the warning shows up on any job where we have defined the executor as "executor: cli/default" with "Executor
cli/default
does not exist" (which is now correct).
So we believe the error that the orb is not in use isn't quite right in this instance, if we're using the executor from the orb. (Which to be fair, does seem like an edge case!)
Reproducible YAML:
version: 2.1
orbs:
# see warning about orb not in use
cli: circleci/circleci-cli@0.1.9
jobs:
do-stuff:
# if orb is commented out, this line will warn the executor is unknown
executor: cli/default
steps:
- checkout
workflows:
my-workflow:
jobs:
- do-stuff