Skip to content

Fix profile install for symlinked directories#92

Closed
jantunes-te wants to merge 1 commit into
bartolli:mainfrom
jantunes-te:fix-90-profile-symlink-dir-install
Closed

Fix profile install for symlinked directories#92
jantunes-te wants to merge 1 commit into
bartolli:mainfrom
jantunes-te:fix-90-profile-symlink-dir-install

Conversation

@jantunes-te

Copy link
Copy Markdown

Summary

  • handle profile entries that resolve to directories (including symlinked directories) by recursively copying their contents
  • normalize and track copied file paths from directory entries in the profile lockfile
  • avoid false conflict sidecars when force reinstalling paths already owned through tracked child files
  • add regression tests for installing a symlinked directory and force reinstall behavior

Testing

  • cargo test symlinked_directory

Fixes #90

Allow profile installation to copy directory symlink targets and track

their files in the lockfile.

Also treat owned directory paths as non-conflicts during forced

reinstalls to avoid unnecessary sidecar files.

Adds regression tests for symlinked directory installs and force

reinstall behavior.
@jantunes-te jantunes-te deleted the fix-90-profile-symlink-dir-install branch February 25, 2026 19:17
@jantunes-te jantunes-te restored the fix-90-profile-symlink-dir-install branch February 25, 2026 19:32
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.

codanna profile install fails when profile contains symlink to a directory

2 participants