-
Notifications
You must be signed in to change notification settings - Fork 77
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
Force env extension to the end, before user #130
Conversation
Signed-off-by: Gaël Écorchard <[email protected]>
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.
Quick cleanup on the patch, but otherwise this looks good. Moving the logic into the core makes sense. It would be great to add a quick unit test for this logic too to make sure it doesn't break with any future refactoring.
setup.py
Outdated
@@ -31,15 +31,15 @@ | |||
|
|||
kwargs = { | |||
'name': 'rocker', | |||
'version': '0.2.3', | |||
'version': '0.2.4', |
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.
Same comments here about changing the version and the unrelated changes.
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.
Sorry, I don't get it, the other version change was for the minor number but here I changed the patch version. Do you mean that I should let the version to 0.2.3?
Signed-off-by: Gaël Écorchard <[email protected]>
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.
I have to admit that I don't know how to write a unit test to test that the env extension is one before the last when it's supposed to be the sole extension tested.
setup.py
Outdated
@@ -31,15 +31,15 @@ | |||
|
|||
kwargs = { | |||
'name': 'rocker', | |||
'version': '0.2.3', | |||
'version': '0.2.4', |
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.
Sorry, I don't get it, the other version change was for the minor number but here I changed the patch version. Do you mean that I should let the version to 0.2.3?
Correct. Your patch may be bundled in with other patches and then a release made. The version number will be bumped during the release process and is separate from your changes. |
Signed-off-by: Gaël Écorchard <[email protected]>
Reverted the version number and unrelated changes. Should I squeeze commits? |
Thanks for the cleanup.
To write the test, you'll need to invoke it with a couple of extensions enabled and check the ordering. extending this test Line 123 in 280b5e1
Coverage should be decent with the following tests:
|
If #242 is merged, the method to get the 'env' extension loaded just before the 'user' extension will need to be modified |
Signed-off-by: Gaël Écorchard [email protected]