Skip to content

Commit

Permalink
Merge pull request #604 from CircleCI-Public/orbs-no-project-path
Browse files Browse the repository at this point in the history
Fix for successfully creating a private orb with orb dev kit
  • Loading branch information
elimt authored Jun 21, 2021
2 parents 850f9ac + 080b89f commit 149d854
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cmd/orb.go
Original file line number Diff line number Diff line change
Expand Up @@ -1256,13 +1256,15 @@ func initOrb(opts orbOptions) error {
}()

if !gitAction {
_, err = api.CreateOrb(opts.cl, namespace, orbName, false)
_, err = api.CreateOrb(opts.cl, namespace, orbName, opts.private)
if err != nil {
return errors.Wrap(err, "Unable to create orb")
}
err = api.AddOrRemoveOrbCategorization(opts.cl, namespace, orbName, opts.args[1], api.Add)
if err != nil {
return err
for _, v := range categories {
err = api.AddOrRemoveOrbCategorization(opts.cl, namespace, orbName, v, api.Add)
if err != nil {
return err
}
}
err = finalizeOrbInit(ownerName, vcsProvider, vcsShort, namespace, orbName, "", &opts)
if err != nil {
Expand Down

0 comments on commit 149d854

Please sign in to comment.