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

Installing using Package Control doesn't create the rmate-* submodules. #8

Closed
simonexmachina opened this issue Oct 24, 2012 · 5 comments

Comments

@simonexmachina
Copy link

I had to use a git clone --recurse-submodules to get these folders.

@simonexmachina
Copy link
Author

Also it looks like these submodules are either private or don't exist any more:

$ git sm update
Cloning into rmate-ruby...
Username: 
Password: 
fatal: Authentication failed
Clone of 'https://github.com/avian/rmate.git' into submodule path 'rmate-ruby' failed

@jeffbyrnes
Copy link
Contributor

The ruby rmate has moved to https://github.com/textmate/rmate, as of TextMate being open-sourced. I've opened a pull request to address that.

@cdenneen
Copy link

cdenneen commented Feb 6, 2013

This is still a bug.
I have tried to install, remove and re-install but the sub-modules do not clone.
If you check the Package directory for rsub after being installed by Package Control (it's not a git repository)

Sublime Text 2/Packages/rsub% ls -a                         
.           Main.sublime-menu   rmate-ruby      ssh-copy-rsub
..          README.md       rsub.py
.gitignore      package-metadata.json   rsub.pyc
.gitmodules     rmate-bash      rsub.sublime-settings

As you can see there is no .git directory. So the following commands don't work. I could clone it myself and then add the submodules but then I'm not using the Package Control Install, so think this needs to be rectified in Package Control either to keep as repository when it downloads so .git exists and kick off a git sm update or at least have a .git directory so you can manually run the submodule update.

Sublime Text 2/Packages/rsub% git clone --recurse-submodules rmate-ruby 
fatal: repository 'rmate-ruby' does not exist
Sublime Text 2/Packages/rsub% git clone --recurse-submodules rmate-bash
fatal: repository 'rmate-bash' does not exist
Sublime Text 2/Packages/rsub% git clone --recurse-submodules .         
fatal: repository '.' does not exist
Sublime Text 2/Packages/rsub% git submodule update          
fatal: Not a git repository (or any of the parent directories): .git

@tornewuff
Copy link
Contributor

This is not a bug in this project, though. Package Control just doesn't check for submodules when it downloads the contents of a repository, and there's probably not any easy way for it to do so either since it doesn't use git to clone the package by default.

See Package Control's docs for how to install packages using git and still have them managed by Package Control.

@cdenneen
Copy link

cdenneen commented Feb 7, 2013

Thanks I've opened a bug for just this issue: wbond/package_control#326

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants