lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] [PATCH] Add script allowing to install any wxWidgets version f


From: Greg Chicares
Subject: Re: [lmi] [PATCH] Add script allowing to install any wxWidgets version from Git
Date: Thu, 5 Apr 2018 22:19:02 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

On 2018-04-05 15:52, Vadim Zeitlin wrote:
> On Thu, 5 Apr 2018 14:43:50 +0000 Greg Chicares <address@hidden> wrote:
[...]
> GC> > If you already have a local wxWidgets repository clone, you will also
> GC> > want to set wx_git_url to the path of this repository to speed up the
> GC> > initial checkout (although, unfortunately, it won't affect the
> GC> > submodules, which will still have to be [slowly] cloned from GitHub,
> GC> > even if you already have them too -- of course, this only needs to be
> GC> > done once, but it's still annoying).
> GC> 
> GC> Is there no other way? I ask because github is sometimes unreachable,
> GC> and the lmi install* makefiles try to maintain cached copies of
> GC> everything to immunize themselves against server faults--as long as
> GC> the cache is up to date, they don't even need an internet connection.
> GC> Of course, we never had to deal with git submodules in the past. But
> GC> I'd like to hope that we could maintain a full mirror somewhere like
> GC> /srv/cache_for_lmi or "C:\cache_for_lmi" and then use that as the
> GC> source for both the "main" repository and all submodules.
> 
>  I don't think it can be done using Git itself
Let me put the question this way. There must be plenty of projects on
plenty of servers that use git submodules. At least some of them must
be mirrored on other servers. How do they do that? Or is it actually
not feasible?

What I have in mind is possibly simpler, because we'll never push to
it: just a read-only local mirror that can easily be kept synchronized
with upstream, as a drop-in replacement for the github remote URL.
Kind of like cd'ing into the parent of the github wx URL and just
doing an rsync, because ultimately it's just a bunch of files. Of
course, maybe it just seems that simple and obvious to me because I
don't know anything about git submodules.

This query:
  https://www.google.com/search?q=mirroring+git+repository+with+submodules
found a few things like
  https://stackoverflow.com/questions/19301188/
but I can't judge whether that makes sense. Then there's this:
  
https://sfxpt.wordpress.com/2013/02/17/git-mirroring-from-sourceforge-to-github/
which surveys many approaches but seems to endorse none.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]