Skip to content

Projects seem to break when git modules paths change #5928

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

Closed
blacklight opened this issue Jul 15, 2019 · 4 comments
Closed

Projects seem to break when git modules paths change #5928

blacklight opened this issue Jul 15, 2019 · 4 comments
Labels
Support Support question

Comments

@blacklight
Copy link

Details

Expected Result

When the path of a git module changes I'd expect the background logic to do the proper sync operations (change .gitmodules, prune the previous module, git submodule sync, git submodule update) and seamlessly migrate to the new path.

Actual Result

RTD seems to try to clone the submodule into the existing folder without cleaning it up first, ending up with an error like:

One or more submodule URLs are not valid: ['platypush/backend/http/static/flag-icons']
@saadmk11 saadmk11 added the Support Support question label Jul 15, 2019
@saadmk11
Copy link
Member

We don't support ssh urls for submodules yet, https only.

please see this : #5884

@stsewd
Copy link
Member

stsewd commented Jul 15, 2019

The error is because your .gitmodules file has a ssh url https://github.com/BlackLight/platypush/blob/f5ef9957de405278995002e3031c7ed6ec4d5842/.gitmodules#L9

We only support http urls at the moment (looks like we should improve the msg error)

@stsewd stsewd closed this as completed Jul 15, 2019
@blacklight
Copy link
Author

blacklight commented Jul 16, 2019

Thanks for the feedback, changing the submodule URL to https fixed it. I see two issues then:

  • [Bug/unclear error] Would it be possible to fix the error with something that states "git/ssh URL schemas for submodules are not supported" instead of "One or more submodule URLs are not valid"?

  • [Enhancement] Would it be possible to support git/ssh schemas for submodules as well? Not all the git repos out there are on GitHub, not all of them are served over https, and accepting only https prevents projects using those submodules from generating their docs.

@stsewd
Copy link
Member

stsewd commented Jul 16, 2019

Thanks for the suggestions. The main restriction is because we don't support private repositories in our community site. There are some ideas in how to support public repositories with ssh schema in #4043

I'm opening a new issue to improve the error message

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

No branches or pull requests

3 participants