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

circleci orb validate fails with private dependent orb from same namespace #751

Closed
jschwanz opened this issue Jul 13, 2022 · 13 comments
Closed
Labels
bug Something isn't working

Comments

@jschwanz
Copy link

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/dep-orb@1.2.3 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
Copy link
Author

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.

@rafaelqueiroz93
Copy link

Unfortunatelly I'm having the same problem.

Waiting for a solution

@adamdmharvey
Copy link
Contributor

adamdmharvey commented Sep 15, 2022

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.

@mcommons1
Copy link

Is there any update on this issue?

@ADUDevEx
Copy link

ADUDevEx commented Feb 6, 2023

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

@kelvintaywl
Copy link
Contributor

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 🙏

@praveenkeshri
Copy link

?

@ADUDevEx
Copy link

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

@JulesFaucherre
Copy link
Contributor

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

@tdeekens
Copy link

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.

@JulesFaucherre
Copy link
Contributor

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!

@zbenhadi
Copy link
Contributor

zbenhadi commented Apr 26, 2023

I've opened a pull request to solve this problem: #922

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

@zbenhadi
Copy link
Contributor

zbenhadi commented May 2, 2023

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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

10 participants