pull, build and other commands should be idemnpotent

Bug #1595964 reported by Didier Roche-Tolomelli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
New
Undecided
Unassigned

Bug Description

The fact that for instance "build()" would erase and redeploy a new build directory is an issue when inheriting and inserting hooks in plugin.

Here is an example of the trick needed due to this bug: https://github.com/ubuntu/snappy-playpen/blob/master/vlc/parts/plugins/x_vlcautotools.py

Tags: lifecycle
description: updated
Revision history for this message
Kyle Fazzari (kyrofa) wrote :

Technically one could argue that it is idempotent. Running it twice does not result in different things: build(build(x)) == build(x).

However, I see the complication you're encountering when trying to extend a plugin; I've run into the same issues myself. The reason the build directory is removed at the beginning of the build step is in the case of a previously failed build. We're working toward being able to resume such builds, but it requires some other things to happen first.

Leo Arias (elopio)
tags: added: lifecycle
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.