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

validate does not install transitive dependencies in individual mode #153

Open
dschibster opened this issue Jan 3, 2025 · 0 comments
Open
Assignees
Labels
bug Something isn't working
Milestone

Comments

@dschibster
Copy link

dschibster commented Jan 3, 2025

Describe the bug
When shrinking dependencies in the sfdx-project.json to get rid of transitive dependencies, sfp validate pool --mode=individual does not install those transitive dependencies, althrough they are properly explained before the validation process starts

To Reproduce
Steps to reproduce the behavior:

  • Create multiple org-dependent packages in one Dev Hub
  • Have one of them (pk2) be dependent on another (pk1)
  • Have a second one be dependent on the one you made dependent in step 2 (pk3)
  • Start a validation with individual mode

Expected behavior
If a change occurs in pk3 only, it should install pk1 and then pk2, because of the way dependencies are inherited.

Screenshots
Image
Explained the right dependencies
Image
Did not install them

Platform Details (please complete the following information):

  • OS: Ubuntu VM
  • Version [e.g. CLI Version eg: 1.6.6] sfp community latest
  • Salesforce CLI(sfdx cli) Version: latest
  • CI Platform: Azure Devops

Additional comments
Workaround is to call sfp dependency expand before sfp validate in the pipeline, but this is probably not how this is supposed to work

@dschibster dschibster changed the title validate does not install transitive dependencies individual mode validate does not install transitive dependencies in individual mode Jan 3, 2025
@azlam-abdulsalam azlam-abdulsalam added bug Something isn't working analysis and removed analysis bug Something isn't working labels Jan 10, 2025
@azlam-abdulsalam azlam-abdulsalam self-assigned this Jan 10, 2025
@azlam-abdulsalam azlam-abdulsalam added this to the March 25 milestone Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants