Skip to content
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

lifecycle: outdated step should raise SnapcraftError #1513

Merged
merged 3 commits into from Aug 29, 2017

Conversation

kalikiana
Copy link
Contributor

Outdated steps should raise derivatives of SnapcraftError

@kalikiana kalikiana self-assigned this Aug 28, 2017
'snapcraft clean {parts_names} -s {step}\n'
)

def __init__(self, step, part,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add an * after self to force all of these to be kwargs (API clarity in the long wrong)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm I had it in there before but it didn't seem to work... I guess it was unrelated. Added the * back!

Copy link
Contributor

@come-maiz come-maiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! I ran a few tests with outdated parts, and this seems all good.

@sergiusens sergiusens added this to the 2.34 milestone Aug 29, 2017
@sergiusens sergiusens merged commit 141d7fd into canonical:master Aug 29, 2017
@sergiusens sergiusens added the Bug Actual bad behavior that don't fall into maintenance or documentation label Aug 29, 2017
@sergiusens sergiusens added this to Technical debt in 17.10 Sep 11, 2017
kalikiana added a commit to kalikiana/snapcraft that referenced this pull request Sep 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Actual bad behavior that don't fall into maintenance or documentation
Projects
17.10
Technical debt
Development

Successfully merging this pull request may close these issues.

None yet

3 participants