We have a large project that we took over and we are in the process of modularising the source into separate packages. At this point we're not quite ready with the metadata sorting to actually create Unlocked Packages so instead we also have a CI script in place to do a git-diff and deploy only change metadata using source:deploy --sourepath notation. This deployment will automatically split into separate deploy operations for each individual package defined in the project json (docs).
When actually deploying, this seems to be fine as long as dependencies are correctly managed.
- package 1 deploy + run tests
- package 2 deploy + run tests
But in the context of a validation deployment (--checkonly --testlevel RunLocalTests) it tries to do the same thing, but falls on an (perhaps) obvious hurdle
- package 1 validate + run tests (ok)
- package 2 validate (fail - metadata from package 1 deployment is missing)
I've not managed to find any mention of validations with regards to the deploy command or what the correct way to do this should be. Are we just trying to do something that will never be possible?
Tried to read through some of the feedback on the feature on GitHub but no luck so far.