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

force:org:create fails claiming ancestor is not released, when ancestor is released. #312

Closed
triestelaporte opened this issue Feb 21, 2020 · 8 comments
Labels
area:org bug Issue or pull request that identifies or fixes a bug

Comments

@triestelaporte
Copy link

Summary

We've been releasing new versions of a package and since upgrading from 7.45.1 to 7.47.0 we can no longer use force:org:create. The error:

The ancestor package version [1.17.0] specified in the sfdx-project.json file hasn't been promoted and released. Release the ancestor package version before specifying it as the ancestor in a new package or patch version.

We can easily see that 1.17.0 has been released in the version list. Using --noancestors option makes this error go away, but it feels like a bug.

Steps To Reproduce:

  1. Build a sfdx-project.json with version 0.1, build beta package, release it.
  2. Update sfdx-project.json with version 0.2, and specify 0.1 as ancestorVersion.
  3. Attempt to use force:org:create without --noancestors, and error should show up.

Expected result

We should be able to spin up new scratch orgs and see a success message here. Using CLI version 7.45.1 has this good result.

Actual result

We see error message indicating a released version is not actually released.

Additional information

SFDX CLI Version(to find the version of the CLI engine run sfdx --version):

sfdx-cli/7.47.0-0e5d18732f darwin-x64 node-v10.15.3

SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core):

@oclif/plugin-autocomplete 0.1.5 (core)
@oclif/plugin-commands 1.2.3 (core)
@oclif/plugin-help 2.2.3 (core)
@oclif/plugin-not-found 1.2.3 (core)
@oclif/plugin-plugins 1.7.9 (core)
@oclif/plugin-update 1.3.9 (core)
@oclif/plugin-warn-if-update-available 1.7.0 (core)
@oclif/plugin-which 1.0.3 (core)
@salesforce/sfdx-trust 3.0.7 (core)
analytics 1.7.1 (core)
generator 1.1.2 (core)
salesforcedx 48.2.0 (core)
├─ @salesforce/sfdx-plugin-lwc-test 0.1.5 (core)
├─ salesforcedx-templates 48.3.0 (core)
└─ salesforce-alm 48.3.0 (core)

sfdx-cli 7.47.0 (core)
texei-sfdx-plugin 1.3.2

OS and version:

Tried in MacOS Catalina and CircleCI Linux.

@triestelaporte
Copy link
Author

I just tested with force:package:version:create and the same error pops. Since --noancestors is not an option on beta package creation this one is a bigger deal.

@clairebianchi clairebianchi added the owned by another team The Salesforce CLI team does not own this work but will pass on the information to the correct team. label Feb 25, 2020
@clairebianchi
Copy link
Collaborator

@triestelaporte I am letting both the packaging and environments teams know of your issue

@vinodr
Copy link

vinodr commented Apr 2, 2020

Is there a workaround for this, other than downgrading the CLI? Still getting the error using CLI version 7.52.0.

@vinodr
Copy link

vinodr commented Apr 2, 2020

I found that using ancestorId instead of ancestorName is working.

@vazexqi
Copy link

vazexqi commented Aug 10, 2020

I've filed W-7937860 to keep track of this internally.

@cristiand391 cristiand391 added bug Issue or pull request that identifies or fixes a bug and removed owned by another team The Salesforce CLI team does not own this work but will pass on the information to the correct team. area:signups labels Feb 14, 2024
Copy link

git2gus bot commented Feb 14, 2024

This issue has been linked to a new work item: W-15040347

@WillieRuemmele
Copy link
Member

Hi @triestelaporte @vinodr - I know this issue has been open for a few years, with a few internal tickets created, and closed, I'm reaching out to verify if this has been fixed, or if it's still an issue?

@triestelaporte
Copy link
Author

I don't think so. Has been off our radar for a while over here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:org bug Issue or pull request that identifies or fixes a bug
Projects
None yet
Development

No branches or pull requests

8 participants