Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
add --clean flag to charm build #33
Comments
chuckbutler
added
the
charm-build
label
Oct 28, 2015
|
I don't think that we should just Even better would be to have it explicitly track files that were in the previous manifest and remove them if they are not in the new manifest, which seems like it could be reasonably done by default (i.e., without |
|
+1 On Tue, Dec 1, 2015 at 12:36 PM Cory Johns notifications@github.com wrote:
|
|
I agree with this as well |
chuckbutler commentedOct 28, 2015
When heavily developing a charm, there are cases where I'm shuffling interfaces/layers between the dependent layer.yaml(s) - and as charm-build is a constructive tool, there's no easy way to signal in place "Please remove my prior constructed charm, and rebuild from scratch - i've removed something".
Introducing a --clean flag is indicative that its a destructive process, and as charm-build knows where the file is going, it could reasonably rm -rf the directory prior to doing the build to ensure a clean artifact is constructed.