repo: address issue with fix_symlink() when pointed at directory
Metadata
Current evaluation
PR #3370 merged as 44d5277a7: fix_symlink() now warns about dangling symlinks pointing at directories instead of crashing shutil.copyfile (SNAPCRAFT-2AV), plus refactor/docs.
Resolution: closed resolved
Reason: The PR itself was merged to master as commit 44d5277a7 'repo: address issue with fix_symlink() when pointed at directory (#3370)', which replaced the failing _try_copy_local() copy attempt with a dangling-symlink warning and added documentation.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | PR #3370 merged as 44d5277a7: fix_symlink() now warns about dangling symlinks pointing at directories instead of crashing shutil.copyfile (SNAPCRAFT-2AV), plus refactor/docs. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged in #3370 (44d5277a7): fix_symlink() now warns about dangling directory-target symlinks instead of crashing, with refactoring and documentation. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged fix addressing fix_symlink() crashes when targeting directories. Updates behavior to warn about dangling symlinks, includes refactoring and documentation, and was approved by reviewers prior to merge. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged fix for fix_symlink() directory target crash. Now warns about dangling symlinks instead of failing. Includes refactoring and docs. Reviewer requested additional test coverage for symlink paths. |
Update history
No update history recorded yet.
Related work
-
Related To:
snapcore/snapcraft#3497
(confidence 85%)
Follow-up merged PR (405c57655) 'repo: fix regression in fix_symlink()' that further corrected relative/host-copy symlink handling and added spread tests.
-
Likely Fixed By:
snapcore/snapcraft#3497
(confidence 60%)
Later PR touching the same fix_symlink() logic, indicating residual regressions in the behaviour introduced here.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #3497 repo: fix regression in fix_symlink() | snapcraft | merged | Merged PR #3497 as 405c57655, fixing fix_symlink() to relink host-copied files correctly and adding spread tests for relative and host-copy cases. | |
| #478 Follow symlinks while hard-linking migrated files. | snapcraft | merged | Merged PR #478 as commit 313023188, resolving symlinks with os.path.realpath() before hard-linking migrated files and preventing broken links in generated snaps. |