satis icon indicating copy to clipboard operation
satis copied to clipboard

Possibility to define options pro repository

Open gennadiylitvinyuk opened this issue 11 years ago • 4 comments

It would be nice to have a possibility to define some options (for example required packages) pro repository.

This would simplify mirroring. Also it would speed up some operations - satis will not search for private packages in local repositories and in the other way.

For example this way:

{
    "name": "Company",
    "homepage": "http://packages.local",
    "repositories": [
        { 
            "type": "vcs", 
            "url": "https://svn.local.local/privaterepository/",
            "require-all": true
        },
        {
            "type": "composer", 
            "url": "https://packagist.org",
            "require": {
                "zendframework/zendframework" : ">=2.2",
                "monolog/monolog": "*"
            },
            "archive": {
                "directory": "dist/ext",
                "format": "tar",
                "skip-dev": true
            }
        }
    ],
    "archive": {
        "directory": "dist"
    },
    "require-dependencies": true
}

Global options (at root level) would be overriden by options on repository level.

gennadiylitvinyuk avatar Feb 19 '14 08:02 gennadiylitvinyuk

Yes! I'd love to be able to mirror a couple packages from packagist and require all from my private vcs repositories.

nathanlenz avatar Mar 14 '14 22:03 nathanlenz

One way to do this would be create two private repositories.

  1. Mirrored repositories requiring specific packages.
  2. Private VCS repositories using "require-all".

nathanlenz avatar Mar 15 '14 14:03 nathanlenz

Isn't this already possible? /cc @Seldaek

alcohol avatar Nov 21 '15 11:11 alcohol

options for repos is possible, satis options per repo isn't I guess.

Seldaek avatar Nov 21 '15 12:11 Seldaek