circleci-cli icon indicating copy to clipboard operation
circleci-cli copied to clipboard

`circleci orb validate` fails with private dependent orb from same namespace

Open jschwanz opened this issue 2 years ago • 3 comments

Meta:

CircleCI CLI Version:

  • using image circleci/circleci-cli@sha256:eee9b00ad8929a528171d773e2ffc9d9f82fcd31c2e89a3da9f22bf17bf54bfc
  • 0.1.19666+830e7ff (release)

Operating System: Ubuntu 20.04


Current behavior:

I'm attempting to author a private orb that has a dependency on another private orb in the same namespace. When circleci orb validate runs as a part of orb-tools I get:

Error: Cannot find my-namespace/[email protected] in the orb registry. Check that the namespace, orb name and version are correct.

Expected behavior:

I expect the orb validate process to be able to validate the use of private orbs from the same namespace.

jschwanz avatar Jul 13 '22 21:07 jschwanz

This functionality already exists in circleci config validate with the --org-id and --org-slug arguments. It would be really nice to have it here, too.

jschwanz avatar Jul 27 '22 21:07 jschwanz

Unfortunatelly I'm having the same problem.

Waiting for a solution

rafaelqueiroz93 avatar Aug 24 '22 20:08 rafaelqueiroz93

We are having this problem with our orbs as well. Effectively, it means we can't really use the circleci orb validate command as most of our private orbs cross-reference each other now for ease of maintenance/encapsulation/reuse.

adamdmharvey avatar Sep 15 '22 15:09 adamdmharvey

Is there any update on this issue?

mcommons1 avatar Dec 16 '22 11:12 mcommons1

After the security breach we experienced in CircleCI we migrated to private orbs and are now blocked by this.

ADUDevEx avatar Feb 06 '23 08:02 ADUDevEx

thank you for your sharing folks!

I am tagging our developer experience team here @CircleCI-Public/developer-experience to see if we can offer any updates on this 🙏

kelvintaywl avatar Mar 16 '23 00:03 kelvintaywl

?

praveenkeshri avatar Mar 16 '23 08:03 praveenkeshri

Thank you @kelvintaywl for your support on this issue. Hopefully the developer-experience team will find time to update this.

ADUDevEx avatar Mar 16 '23 13:03 ADUDevEx

Hello,

Developer from @CircleCI-Public/developer-experience , really sorry we took so much time to answer. We are starting looking into the problem. @jschwanz, the solution we are going to make will surely look something like this but we first need our back-end to support this so unfortunately it's going to take a bit more time. Anyway we are looking into the issue and we should fix it soon

JulesFaucherre avatar Mar 17 '23 14:03 JulesFaucherre

Thanks for the feedback @JulesFaucherre. Has there been any progress on this. Running into this is quite tedious to get around and I am sure fixing it would uplift how companies can adopt and use Orbs more easily.

tdeekens avatar Apr 20 '23 12:04 tdeekens

Hello, yes sorry for not getting back to this before! This took us a bit more time than expected because we had dependencies on other teams. Now it's a bit more advanced and we should be releasing this fix by the beginning of next week!

JulesFaucherre avatar Apr 20 '23 14:04 JulesFaucherre

I've opened a pull request to solve this problem: https://github.com/CircleCI-Public/circleci-cli/pull/922

The orb validate will be able to accept org-slug and/or org-id flags just like config validate command.

zbenhadi avatar Apr 26 '23 08:04 zbenhadi

Hello again ! The PR has been merged and a new cli version has been released fixing this issue (https://github.com/CircleCI-Public/circleci-cli/releases/tag/v0.1.26255)

Thanks to everyone who participated in this issue !

zbenhadi avatar May 02 '23 09:05 zbenhadi