You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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!
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
If you try to set the
ancestorVersion
orancestorId
values in thesfdx-project.json
file, and then run the package version create command again, you are greeted with this errorThe 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?
The text was updated successfully, but these errors were encountered: