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
Catkin plugin: Refactor build. #175
Conversation
b04905a
to
ba0eb40
Compare
@@ -25,6 +25,9 @@ | |||
- catkin-packages: | |||
(list of strings) | |||
List of catkin packages to build. | |||
- source-space: |
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.
Is source-space
the word used upstream, if not, it feels weird. Maybe just workspace
?
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.
Yeah, line 262. Workspace would be confusing since that's what source
/source-subdir
should be pointing to (the catkin workspace). Catkin has a "build space," a "devel space," an "install space," and a "source space." And a workspace 😛 .
💯 on this, looks really good in the readability domain! Just had a couple nitpicks here and there. |
ba0eb40
to
a3a7420
Compare
Thanks for the good review @sergiusens! I've pushed a new version that should address your concerns. |
Looks good, just adding one more comment about you have my 👍 regardless |
a3a7420
to
4ef6aa7
Compare
@sergiusens Fixed both. You're right, the |
This commit contains a number of small refactors: - Change env() to only contain variables for run-time, and document each of them. - Only obtain dependencies upon pull()-- for build() they should just be ready to go. - Extract dependency resolution into a standalone function that can be tested in isolation. - Change build() to be less clever and more simple/verbose/robust. - Add `source-space` keyword to get rid of custom build(). - Get testing coverage to 100%. Signed-off-by: Kyle Fazzari <kyle@canonical.com>
4ef6aa7
to
9045874
Compare
Catkin plugin: Refactor build.
Fixed typo
Catkin plugin: Refactor build.
This PR contains a number of small refactors:
env()
to only contain variables for run-time, and document each of them.pull()
-- forbuild()
they should just be ready to go.build()
to be less clever and more simple/verbose/robust.source-space
keyword to get rid of custombuild()
.