satis icon indicating copy to clipboard operation
satis copied to clipboard

`satis build` always scan all repositories.

Open AnrDaemon opened this issue 7 years ago • 3 comments
trafficstars

Slightly related to #94 , but to me it feels like an actual bug. Every time satis build … is invoked, it always scan all repositories regardless of command line specs. Even if you specify just one project to rebuild, all listed repositories will be accessed every time, making the ability to specify packages to rebuild largely useless.

For those interested, the problem starts around src/Console/Command/BuildCommand.php:183

AnrDaemon avatar Mar 07 '18 04:03 AnrDaemon

Well, Satis has no way to know in advance which repository contains which package. This is why it has to scan them all.

The partial build is mostly useful when you configure Satis to generate dist archives (as generating them takes time).

stof avatar Mar 07 '18 12:03 stof

@AnrDaemon Does --repository-url https://only.my/repo.git solve your problem? That way only one repository is scanned. If you have one package per repo that should do the trick for you!?

cumuru avatar Apr 13 '18 13:04 cumuru

I'll check it out, thanks. Didn't came to my mind. :/ I have more than one project per some of the repos, but that shouldn't be an issue. Will need to re-think the hooks…

AnrDaemon avatar Apr 13 '18 14:04 AnrDaemon