-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Conversation
This replaces the previously removed `nta` directory with the nupic.core codebase and names it `nta` to replace the deleted code.
before building.
The build leaves nupic.core submodule in an altered state because of the files it dumps. This resets all submodules to initial state after building.
@@ -0,0 +1,3 @@ | |||
[submodule "nupic.core"] | |||
path = nta | |||
url = git@github.com:numenta/nupic.core.git |
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.
This needs to be the unauthenticated URL:
https://github.com/numenta/nupic.git
Or:
git://github.com/numenta/nupic.git
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.
Thanks.
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.
My bad. Needs to be git://github.com/numenta/nupic.core.git
Builds for me, but fails in Travis for the reason I mentioned in another comment. |
Some more cleanup to build process incoming. |
Trying to plan for different states. If a user removes the nta dir submodule, this will put it back before initializing the submodule. Also cleans up after build in a cleanup function.
Getting git error in Travis. Not sure why, because
I'm going to attempt to replicate the Travis commands being executed locally to see if I can get the same error in a fresh checkout just like Travis does it. |
Maybe disable Travis's automatic From http://docs.travis-ci.com/user/build-configuration/#Git-Submodules git:
submodules: false |
@oxtopus Nice find! Trying now. I had the same error when running locally, however. Let's see what happens now. |
Build seems to be making progress now. |
Ready to merge. |
Looks good to me. How does this affect workflow if you need to work on both nupic and nupic.core? If a developer needs to make changes to nupic.core, and test it in nupic, how does one go about doing that? |
I don't recommend editing a submodule in place within a parent module Matt Taylor On Mon, Feb 3, 2014 at 9:32 PM, Austin Marshall notifications@github.comwrote:
|
I'd really like to know @scottpurdy's and especially @subutai's opinions on this as they are closer to this area of the code. |
Sure. If we decide that the submodule workflow is too complex, we can remove it and replace with something we build that does the same thing. |
I got into "submodule hell" at some point in the past, which put me off submodules for a long time, but here was the situation in that case. I had 3 projects, 2 of which depended on the same project.
It was very common that I needed to change This case, with a 1v1 dependency, is much simpler. By default, submodules are in a detached HEAD state, so editing them in place can't happen until they are associated with a branch. In my workflow above, I did associate the submodule that way and work within the submodule inline within the parent project. So it is possible, but you have to remember to commit the changes from within the submodule up into the submodule's repository, then go back into the parent repository and commit/push the submodule change. Another possibility is to edit the |
I don't really know much about submodules. I'm happy with any temporary stop-gap solution as long as it is short lived and doesn't affect the Grok pipeline. We can try out submodules and see how bad it is. I'm much more concerned with the end directory layout and where we end up, such as issue #591. |
Ok, let's merge this then, and deal with the consequences. I want to start Matt Taylor On Tue, Feb 4, 2014 at 9:58 AM, Subutai Ahmad notifications@github.comwrote:
|
hey :) sorry, I didn't follow up lately, just updated and was surprised by all |
I didn't have to |
Fixes #596 and #587.
This removes the
nta
directory entirely and replaces it with a git submodule with the same path fornupic.core
. The build script has been updated to sync the submodule with each build.