-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cli: Containerbuild clean #1372
Conversation
This looks correct to me. However, I'm having problems to test it. I'm failing to build the snap with this error: http://paste.ubuntu.com/24930727/ Then the container is stopped. When I run clean, the first thing it tries to do is to start it, and it fails. @kalikiana do you see something wrong in my first snapcraft call? And in the second, wouldn't it be better not even trying to start the container? just remove it? |
snapcraft/internal/lxd.py
Outdated
@@ -219,7 +219,7 @@ def _finish(self): | |||
|
|||
def execute(self, step='snap', args=None): | |||
super().execute(step, args) | |||
if step == 'clean' and not args: | |||
if step == 'clean' and 'pull' in args: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we have to check here if there are no parts in args
? Maybe, this clean command is to clean only one part, and leave the rest.
@ElOpio I have no idea what your error is about. I suggest you open a forum topic for investigation. This branch isn't changing the implementation, only the passing of arguments. |
@kalikiana there's clearly a bug, not introduced by this branch but it prevents me from testing this branch. I reported it here, with simple steps to reproduce: https://bugs.launchpad.net/snapcraft/+bug/1700703 It happens on all my machines, but I made sure to reproduce it in a clean environment. I assigned it to you. Please take a look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works ok on my local system, the lxd weirdness I saw elsewhere remains to be seen.
Add a unit test (and fix) for `SNAPCRAFT_CONTAINER_BUILDS=1 clean`
Add a unit test (and fix) for `SNAPCRAFT_CONTAINER_BUILDS=1 clean`
Add a unit test (and fix) for
SNAPCRAFT_CONTAINER_BUILDS=1 clean
.