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

package:version:create requires ancestor on unlocked packages #1409

Closed
jhawk-4 opened this issue Feb 15, 2022 · 1 comment
Closed

package:version:create requires ancestor on unlocked packages #1409

jhawk-4 opened this issue Feb 15, 2022 · 1 comment

Comments

@jhawk-4
Copy link

jhawk-4 commented Feb 15, 2022

Ancestors are now required for second-generation managed packages. When attempting to create a new package version on an unlocked package, we are getting the following error

Can’t create package version. The ancestor version [undefined] you specified isn’t the highest released package version. Set the ancestor version to 1.0.0, and try creating the package version again. You can also specify --skipancestorcheck to override the ancestry requirement.

If you try to set the ancestorVersion or ancestorId values in the sfdx-project.json file, and then run the package version create command again, you are greeted with this error

Can’t create package version. Specifying an ancestor is available only for second-generation managed packages. Remove the ancestorId or ancestorVersion from your sfdx-project.json file, and then create the package version again.

The only workaround that we were able to do is to use the --skipancestorcheck while creating the package version.

Should this be required when developing non-managed packages?

@iowillhoit
Copy link
Contributor

Hey @jhawk-4, this is a bug. I am currently working on getting the fix into a new release candidate of the cli. I am going to close this issue and I'll post on #1403 once it's out. Thanks!

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