Collision detection doesn't compare symlinks to files or directories
Bug #1658225 reported by
Kyle Fazzari
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
Medium
|
Kyle Fazzari |
Bug Description
Snapcraft runs a collision detection algorithm when attempting to merge two parts. This algorithm has two related issues:
1. It only compares files, which means files (e.g. symlinks) that collide with directories are missed until the migration is attempted, at which point cryptic "destination is a directory" errors are raised.
2. If a file in both parts is a symlink, it immediately assumes they don't collide, without checking where they're pointing. If they point to different places they _should_ collide.
Changed in snapcraft: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Kyle Fazzari (kyrofa) |
description: | updated |
Changed in snapcraft: | |
status: | In Progress → Fix Committed |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fix here: https:/ /github. com/snapcore/ snapcraft/ pull/1064