Skip to content

fix(simply-package): match package directory paths across OS separators in dependencies manage - #137

Merged
ClayChipps merged 1 commit into
mainfrom
fix/dependencies-manage-windows-path-separator
Aug 28, 2026
Merged

fix(simply-package): match package directory paths across OS separators in dependencies manage#137
ClayChipps merged 1 commit into
mainfrom
fix/dependencies-manage-windows-path-separator

Conversation

@ClayChipps

Copy link
Copy Markdown
Contributor

Summary

  • dependencies manage's directory lookup compared SfProject.getPackageDirectories() paths (OS-normalized) directly against sfdx-project.json's raw paths (always forward-slash), causing a false mismatch and silent no-op write on Windows.
  • Normalize both sides to forward slashes before comparing.

Test plan

  • Added unit tests covering path separator mismatches in sfdxProjectService.test.ts
  • pnpm test

🤖 Generated with Claude Code

…rs in dependencies manage

sfdx-project.json always stores packageDirectories[].path with forward slashes, but
SfProject.getPackageDirectories() normalizes that path to the OS separator (backslashes on
Windows). applyChanges() compared these with strict equality, so any package directory with
a nested path (e.g. force-app/main/default) never matched on Windows, and dependency version
updates were silently dropped without any error.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@ClayChipps
ClayChipps enabled auto-merge August 28, 2026 16:27
@ClayChipps
ClayChipps merged commit 93b7a4d into main Aug 28, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant