Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Orb is stated to be unused #265

Open
BrentWilkins opened this issue Dec 27, 2023 · 1 comment
Open

Orb is stated to be unused #265

BrentWilkins opened this issue Dec 27, 2023 · 1 comment

Comments

@BrentWilkins
Copy link

I roughly copy-pasted the following code from this example.

version: 2.1
orbs:
  aws-cli: circleci/[email protected]
  aws-ecr: circleci/[email protected]
jobs:
  build-test-then-push-with-buildx:
    machine:
      image: ubuntu-2204:2023.07.2
    steps:
      - aws-ecr/build_and_push_image:
          attach_workspace: true
          auth:
            - aws-cli/setup:
                role_arn: arn:aws:iam::123456789012
          create_repo: true
          dockerfile: Dockerfile
          path: workspace
          platform: linux/amd64
          push_image: false
          region: us-west-2
          repo: my-sample-repo
          tag: sampleTag
          workspace_root: .

workflows:
  build-and-test:
    jobs:
      - build-test-then-push-with-buildx

aws-cli: circleci/[email protected] has the yellow squiggly underline. It expands to this:

Orb is unused cci-language-server
https://circleci.com/docs/creating-orbs#semantic-versioning-in-orbs

An orb to depend on and its semver range, or volatile for the most recent release.

CircleCI config.yml
https://circleci.com/docs/creating-orbs#semantic-versioning-in-orbs

An orb to depend on and its semver range, or volatile for the most recent release.

Source: circleciconfig.json

What is it called when we use it in the auth section below that? In my actual project I don't get the unused error, but I get an undefined error where I use it.

@loderunner
Copy link
Contributor

Thanks for bringing this issue to our attention! It seems we do not consider an orb as used when its steps are used as a parameter to another step. Looking into this.

In my actual project I don't get the unused error, but I get an undefined error where I use it.

I'm not sure I actually understand. Could you explain what you mean by "an undefined error where I use it"? Feel free to share screenshots or code snippets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants