cleaning a step on a dir built with an old snapcraft doesn't mention that a full clean is needed too

Bug #1561328 reported by Leo Arias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Low
Kyle Fazzari

Bug Description

I have a snap directory that I build with an old snapcraft version. When I try to clean a step it tells me:

Failed to clean step 'strip': Missing necessary state. Please run
strip again.

So, I run step again, and then try to clean the step again, getting the same error.

What the error didn't tell me is that I needed to execute a full clean before running strip again.

elopio@calchas:~/workspace/canonical/snapcraft/examples/libpipeline$ ./../../bin/snapcraft clean -s s
trip
Cleaning snapping area for libpipeline
Failed to clean step 'strip': Missing necessary state. Please run
strip again.
elopio@calchas:~/workspace/canonical/snapcraft/examples/libpipeline$ ./../../bin/snapcraft strip
Skipping pull libpipeline (already ran)
'pipelinetest' has prerequisites that need to be staged: libpipeline
Skipping pull libpipeline (already ran)
Skipping build libpipeline (already ran)
Skipping stage libpipeline (already ran)
Skipping pull pipelinetest (already ran)
Skipping build libpipeline (already ran)
'pipelinetest' has prerequisites that need to be staged: libpipeline
Skipping pull libpipeline (already ran)
Skipping build libpipeline (already ran)
Skipping stage libpipeline (already ran)
Skipping build pipelinetest (already ran)
Skipping stage libpipeline (already ran)
'pipelinetest' has prerequisites that need to be staged: libpipeline
Skipping pull libpipeline (already ran)
Skipping build libpipeline (already ran)
Skipping stage libpipeline (already ran)
Skipping stage pipelinetest (already ran)
Skipping strip libpipeline (already ran)
'pipelinetest' has prerequisites that need to be staged: libpipeline
Skipping pull libpipeline (already ran)
Skipping build libpipeline (already ran)
Skipping stage libpipeline (already ran)
Skipping strip pipelinetest (already ran)
elopio@calchas:~/workspace/canonical/snapcraft/examples/libpipeline$ ./../../bin/snapcraft clean -s strip
Cleaning snapping area for libpipeline
Failed to clean step 'strip': Missing necessary state. Please run
strip again.

Leo Arias (elopio)
Changed in snapcraft:
importance: Undecided → Low
Changed in snapcraft:
milestone: none → 2.7
assignee: nobody → Kyle Fazzari (kyrofa)
Changed in snapcraft:
status: New → Triaged
Revision history for this message
Kyle Fazzari (kyrofa) wrote :
Changed in snapcraft:
status: Triaged → In Progress
Changed in snapcraft:
status: In Progress → Fix Committed
Changed in snapcraft:
status: Fix Committed → 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.