-
Notifications
You must be signed in to change notification settings - Fork 511
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
Mirror repository #75
Comments
Something like https://github.com/khepin/medusa ? |
@Seldaek Any thoughts on merging Medusa into Satis? |
i would like something like this too. |
I don't think mirror git/hg/svn repository is a good idea, because composer is the front-end for those wants to use some package. It may bring unecessary complexity to Satis. Just my opnion for now. Anyawy, I have same desire as you. I want to build my satis repository faster and provide packages in a private network in a fast way. Mirros whole repository It's possible mirror a whole repository, see doc {
"require-all": true
} Archive packages It's possible also make a archive of them, see doc {
"archive": {
"directory": "dist"
}
} Reduce latency Once a Satis repository uses Later updates faster Satis build command does not re-download packages already in dist directory. I've opened a issue to make build faster, see issue composer/composer#2098 and PR composer/composer#2099 trying to make |
@renanbr The point (and that makes your whole comment invalid) is, that you think it is about dist-packages. All you mentioned is only valid for this kind of installation, but the source-packages require a repository. What I can do is to clone every repository myself and let satis build from there, but why, if satis could do it for me? Initially I expected, that satis is able to mirror the repositories, but it can only mirror the dist-packages. That is not bad at all, but kind of incomplete. Especially it doesn't help me for development, where I prefer source-installations (
The last time I looked into the source satis had no complexity at all 😄 |
this is one of the reasons i would like a mirror function. and as kingCrunch i also prefer the source version. |
@kingcrunch and @smurfy, it makes sense, and https://github.com/khepin/medusa is great. |
I like the format medua uses in its medusa.json (sample: https://github.com/instaclick/medusa) I would suggest adding the "require" element to satis and everything in there will be mirrored. (like medusa is doing it) Edit: |
bump I'll give medua a try, though I still think it can make sense to have this in a single tool 😉 It's about "merging contributors", especially since the khepin-repository doesn't seem to be active anymore, so it may break once satis changes something relevant. |
Like the current dist-dump [1] it would be nice to clone whole repositories, so that one can act completely indepedent from any external service even when installing dependencies as "source".
composer.json
s and dumping the dist-files should be much faster when done from the local clone 😄git fetch --all
, orsvn update
(or similar) is required[1] http://getcomposer.org/doc/articles/handling-private-packages-with-satis.md#downloads
The text was updated successfully, but these errors were encountered: