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

fix: add a method that returns a 04t from a partial package descriptor entry #563

Merged

Conversation

shetzel
Copy link
Contributor

@shetzel shetzel commented May 9, 2024

Adds a public static method to the SubscriberPackageVersion API that returns the SubscriberPackageVersionId (04t) given a partial packageDirectories entry (versionNumber and packageId fields, as well as an optional branch field).

forcedotcom/cli#2721
@W-15611712@

* or a package Id (0Ho) + a version number. Additionally, a build number may be the actual build number, or a
* keyword: LATEST or RELEASED (meaning the latest or released build number for a given major.minor.patch).
*
* This method resolves a package Id + version number to a subscriber package version id (04t)
* and adds it as a SubscriberPackageVersionId parameter in the dependency object.
*/
private async retrieveSubscriberPackageVersionId(dependency: PackageDescriptorJson): Promise<PackageDescriptorJson> {
await this.validateDependencyValues(dependency);
if (dependency.subscriberPackageVersionId) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to call resolveSubscriberPackageVersionId here now since we moved this into its own method?

@WillieRuemmele WillieRuemmele merged commit 1c61c65 into main May 17, 2024
14 checks passed
@WillieRuemmele WillieRuemmele deleted the sh/make-retrieveSubscriberPackageVersionId-public branch May 17, 2024 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants