<div><div dir="auto">Sub module paths are hard coded in .gitmodule  file and I think some how that has to be modified or overridden </div></div><div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 19, 2018 at 9:25 AM Mark Hatle &lt;<a href="mailto:mark.hatle@windriver.com">mark.hatle@windriver.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I&#39;ve been struggling for the past few days with gitsm, and have finally thrown<br>
in the towel.<br>
<br>
What is happening is that I am trying to use the &#39;ostree&#39; recipe (not really<br>
important), but that uses the gitsm fetcher against:<br>
<br>
gitsm://<a href="http://github.com/ostreedev/ostree.git;branch=master" rel="noreferrer" target="_blank">github.com/ostreedev/ostree.git;branch=master</a><br>
<br>
On a fetch the system correctly pulls down the &#39;ostree.git&#39; from a local mirror<br>
I have setup.  However, it then moves to the step of configuring the submodules<br>
and fetching them, and goes out to the network and ALWAYS pulls them from the<br>
network.<br>
<br>
My mirror is setup using:<br>
<br>
PREMIRRORS_append = &quot; \<br>
     gitsm://.*/.* gitsm://${LAYERDIR}/git/MIRRORNAME;protocol=file \n \<br>
&quot;<br>
<br>
(my mirrors are simply local cloned bare repositories)<br>
<br>
If I modify my /etc/hosts files to point github/gitlab to 127.0.0.1, I can<br>
easily trigger the faults:<br>
<br>
ERROR: ostree-2018.7+gitAUTOINC+4148918655-r0 do_unpack: Fetcher failure: Fetch<br>
command export PSEUDO_DISABLED=1; ... git -c core.fsyncobjectfiles=0 submodule<br>
update --init --recursive || (git -c core.fsyncobjectfiles=0 submodule sync<br>
--recursive &amp;&amp; git -c core.fsyncobjectfiles=0 submodule update --init<br>
--recursive) failed with exit code 1, output:<br>
Submodule &#39;bsdiff&#39; (<a href="https://github.com/mendsley/bsdiff" rel="noreferrer" target="_blank">https://github.com/mendsley/bsdiff</a>) registered for path &#39;bsdiff&#39;<br>
Submodule &#39;libglnx&#39; (<a href="https://gitlab.gnome.org/GNOME/libglnx.git" rel="noreferrer" target="_blank">https://gitlab.gnome.org/GNOME/libglnx.git</a>) registered for<br>
path &#39;libglnx&#39;<br>
Cloning into &#39;bsdiff&#39;...<br>
Synchronizing submodule url for &#39;bsdiff&#39;<br>
Synchronizing submodule url for &#39;libglnx&#39;<br>
Cloning into &#39;bsdiff&#39;...<br>
<br>
fatal: unable to access &#39;<a href="https://github.com/mendsley/bsdiff/" rel="noreferrer" target="_blank">https://github.com/mendsley/bsdiff/</a>&#39;: Failed connect to<br>
<a href="http://github.com:443" rel="noreferrer" target="_blank">github.com:443</a>; Connection refused<br>
Clone of &#39;<a href="https://github.com/mendsley/bsdiff" rel="noreferrer" target="_blank">https://github.com/mendsley/bsdiff</a>&#39; into submodule path &#39;bsdiff&#39; failed<br>
fatal: unable to access &#39;<a href="https://github.com/mendsley/bsdiff/" rel="noreferrer" target="_blank">https://github.com/mendsley/bsdiff/</a>&#39;: Failed connect to<br>
<a href="http://github.com:443" rel="noreferrer" target="_blank">github.com:443</a>; Connection refused<br>
Clone of &#39;<a href="https://github.com/mendsley/bsdiff" rel="noreferrer" target="_blank">https://github.com/mendsley/bsdiff</a>&#39; into submodule path &#39;bsdiff&#39; failed<br>
<br>
<br>
I&#39;ve tried a number of things, but so far I&#39;m just not understanding how to<br>
proceed.  I assume at some point the references to the modules really need to<br>
refer to an alternative location and be fetched in, but I&#39;m not sure that any of<br>
the existing interfaces would allow that.<br>
<br>
Any suggestions how to proceed?<br>
<br>
--Mark<br>
-- <br>
_______________________________________________<br>
bitbake-devel mailing list<br>
<a href="mailto:bitbake-devel@lists.openembedded.org" target="_blank">bitbake-devel@lists.openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/bitbake-devel" rel="noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/bitbake-devel</a><br>
</blockquote></div></div>