-
Notifications
You must be signed in to change notification settings - Fork 3
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
make submodule URI relative #45
Comments
Comment by Earnestly This smells like a package manager/package build system problem; with something like # It is merely coincidence that the submodule is from the same
# github user, but this could be from anywhere.
source=('git+https://github.com/Cloudef/wlc'
'git+https://github.com/Cloudef/chck')
# And in the prepare/post-build function:
prepare() {
cd wlc
git submodule init
git config submodule.lib/chck.url "$srcdir"/chck
git submodule update lib/chck
} I'm not sure how it works in Gentoo but usually packages have a policy of "do not download during the build" and "do not build during the install". |
Comment by Cloudef This breaks git submodules completely when ../chck.git is not available. Effectively breaking in-source builds which are useful for development. |
Comment by mgorny @Cloudef, I don't understand the problem you are referring to. This affects only the clone URI, and is relatively to the remote URI. So if you |
Comment by Cloudef All right, I did not know relative urls are relative to the actual remote. This makes sense then. I'll test this later. |
Comment by Cloudef This actually breaks your fork, since it tries to clone chck from your github git path, but does not exist there. I think it's better to use git config to specify the submodule url manually for the specific cases. |
Comment by mgorny I'd dare say fork is a specific case, while just cloning the upstream repo is a generic case which should be accounted for. IOW, person doing |
Issue by hashashini
Tuesday Dec 22, 2015 at 20:06 GMT
Originally opened as Cloudef/wlc#98
As protocol URI transformation is not predictable across different platforms like github, a relative URI should be preferred. Thus e.g. package managers can easily check out submodules via the same protocol that is used for checking out the main repo.
(solves https://bugs.gentoo.org/show_bug.cgi?id=568156)
hashashini included the following code: https://github.com/Cloudef/wlc/pull/98/commits
The text was updated successfully, but these errors were encountered: