fix: stop scoping LATEST dependency resolution to --branch flag @W-21617695@#898
Open
WillieRuemmele wants to merge 1 commit into
Open
fix: stop scoping LATEST dependency resolution to --branch flag @W-21617695@#898WillieRuemmele wants to merge 1 commit into
WillieRuemmele wants to merge 1 commit into
Conversation
WillieRuemmele
force-pushed
the
wr/fixLatestDependencyBranchScoping
branch
from
July 20, 2026 21:06
58d14bc to
b7d2016
Compare
WillieRuemmele
force-pushed
the
wr/fixLatestDependencyBranchScoping
branch
from
July 20, 2026 21:19
b7d2016 to
081e13f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--branchis passed tosf package version create, LATEST dependency resolution now falls back to the null branch (main/released versions) if the dependency has no versions on the specified branchNoReleaseVersionFoundForBranchError— now it gracefully resolves from the unscoped branchbranchin their config still use that branch (existing behavior preserved)Fixes forcedotcom/cli#3517
Work Item
@W-21617695@: LATEST dependency resolution incorrectly scoped to --branch for all packages
Proof of Work
Test plan
sf package version create --branch <branch>with dependencies usingLATESTthat don't have versions on the specified branch — should now succeed by falling back to null branch resolutionsf package version create --branch <branch>with dependencies that DO have versions on the branch — should resolve LATEST from that branch (existing behavior)sf package version create --branch <branch>with dependencies that have an explicitbranchin their config — should still resolve against that explicit branchsf package version create(no --branch flag) withLATESTdependencies — behavior unchanged (resolves against null branch)''— should resolve against null branch (existing behavior preserved)