snapcraft clean <part> doesn't remove the bin/ directory

Bug #1591056 reported by Didier Roche-Tolomelli
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
High
Unassigned
snapcraft (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

snapcraft clean <part> doesn't remove the bin/ directory from this part.

$ snapcraft clean gnu-bash
$ ls parts/gnu-bash/
bin

-> I would completely remove parts/gnu-bash directory and its content, as if the part wasn't pulled or anything.
Indeed, it would be weird to have a potentially empty parts/gnu-bash/ directory, especially if we rename one part.

Tags: clean
Revision history for this message
Leo Arias (elopio) wrote :

Setting priority to high because this is part of the tour.

Changed in snapcraft (Ubuntu):
status: New → Confirmed
Changed in snapcraft:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

Can you confirm this is still the case in master?

Seems with the pkg-config rework it should not be a problem anymore

Changed in snapcraft:
status: Confirmed → Incomplete
Changed in snapcraft (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Leo Arias (elopio) wrote :

This is fixed in master, not yet released to xenial:

elopio@remote-devel:~/workspace/canonical/snapcraft/tour/00-SNAPCRAFT/02-parts⟫ ls parts/gnu-bash/
build install src state ubuntu
elopio@remote-devel:~/workspace/canonical/snapcraft/tour/00-SNAPCRAFT/02-parts⟫ ./../../../bin/snapcraft clean gnu-bash
Cleaning priming area for gnu-bash
Cleaning staging area for gnu-bash
Cleaning build for gnu-bash
Cleaning pulled source for gnu-bash
elopio@remote-devel:~/workspace/canonical/snapcraft/tour/00-SNAPCRAFT/02-parts⟫ ls parts/gnu-bash/
ls: cannot access 'parts/gnu-bash/': No such file or directory

Leo Arias (elopio)
tags: added: clean
Revision history for this message
Leo Arias (elopio) wrote :

The tour in snapcraft.io is already updated. All good.

Changed in snapcraft:
status: Incomplete → Fix Released
Changed in snapcraft (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.