satis icon indicating copy to clipboard operation
satis copied to clipboard

Limit scan to certain branches

Open daften opened this issue 8 years ago • 4 comments
trafficstars

Is there a way to limit the scan satis performs to certain branches (and tags on certain branches). This would speed up the build, because some repositories have a lot of tags (for drupal 7 versions) in them, and we'd only need to scan the drupal 8 versions.

daften avatar Dec 21 '16 10:12 daften

Satis leverages Composer, and Composer does not support this currently afaik.

and tags on certain branches

FYI: tags are not stored on branches. Tags are just objects by themselves. There is no such thing as "tags on certain branches".

Composer will read the composer.json in every branch and tag it finds. You can limit Satis to only mirror/store certain ones by specifying a version constraint in the require section. This will not limit the scan phase though.

alcohol avatar Dec 21 '16 10:12 alcohol

AFAIK, this has been changed in recent Composer update.

AnrDaemon avatar Apr 13 '18 14:04 AnrDaemon

I don't think the newest composer version has solved this issue. We are using the require section of the satis config and add branches manually with "||":

"require": {
    "repo/commons": "dev-development",
    "repo/config": "dev-development || dev-feature-abc"
}

haimich avatar Apr 08 '19 17:04 haimich

@haimich can you please be more specific about issue you, specifically, encountering.

AnrDaemon avatar Apr 08 '19 17:04 AnrDaemon