fxpio / composer-asset-plugin

NPM/Bower Dependency Manager for Composer
MIT License
893 stars 156 forks source link

Proposal: Issue warning about packages with more than 500 releases #208

Closed schmunk42 closed 8 years ago

schmunk42 commented 8 years ago

I noticed long running updates for some of our projects because of including bower packages with thousands of releases, angular in our case.

I think it would be a good idea this show a warning when having more than 500 tags/releases, because it will take a lot of time during updates, unless caching (https://github.com/francoispluchino/composer-asset-plugin/issues/116) is improved.

Example output:

Adding VCS repository bower-asset/angular
Downloading https://api.github.com/repos/angular/bower-angular
Downloading https://api.github.com/repos/angular/bower-angular/contents/bower.json?ref=master
Downloading https://api.github.com/repos/angular/bower-angular/commits/master
Downloading https://api.github.com/repos/angular/bower-angular/tags?per_page=100
Downloading https://api.github.com/repositories/5750827/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=2
Downloading https://api.github.com/repositories/5750827/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=3
Downloading https://api.github.com/repositories/5750827/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=4
Downloading https://api.github.com/repositories/5750827/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=5
Downloading https://api.github.com/repositories/5750827/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=6
Downloading https://api.github.com/repositories/5750827/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=7
Downloading https://api.github.com/repositories/5750827/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=8
Downloading https://api.github.com/repositories/5750827/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=9
Downloading https://api.github.com/repositories/5750827/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=10
Downloading https://api.github.com/repositories/5750827/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=11
Downloading https://api.github.com/repositories/5750827/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=12
Downloading https://api.github.com/repositories/5750827/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=13
Downloading https://api.github.com/repositories/5750827/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=14
Downloading https://api.github.com/repositories/5750827/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=15
Downloading https://api.github.com/repositories/5750827/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=16
Downloading https://api.github.com/repositories/5750827/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=17
Downloading https://api.github.com/repositories/5750827/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=18
Downloading https://api.github.com/repositories/5750827/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=19
Downloading https://api.github.com/repositories/5750827/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=20
Downloading https://api.github.com/repositories/5750827/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=21
Downloading https://api.github.com/repositories/5750827/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=22
Downloading https://api.github.com/repositories/5750827/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=23
Downloading https://api.github.com/repositories/5750827/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=24
Downloading https://api.github.com/repositories/5750827/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=25
Downloading https://api.github.com/repositories/5750827/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=26
Downloading https://api.github.com/repositories/5750827/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=27
Downloading https://api.github.com/repositories/5750827/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=28
Downloading https://api.github.com/repositories/5750827/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=29
Downloading https://api.github.com/repositories/5750827/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=30
Downloading https://api.github.com/repositories/5750827/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=31
aDownloading https://api.github.com/repositories/5750827/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=32
Downloading https://api.github.com/repos/angular/bower-angular/git/refs/heads?per_page=100
Downloading https://bower.herokuapp.com/packages/angular-route
Writing /root/.composer/cache/repo/https---bower.herokuapp.com-packages/angular-route-54a09c020d1b83812e1be4795578b1fb11802a75-package.json into cache
Adding VCS repository bower-asset/angular-route
Downloading https://api.github.com/repos/angular/bower-angular-route
Downloading https://api.github.com/repos/angular/bower-angular-route/contents/bower.json?ref=master
Downloading https://api.github.com/repos/angular/bower-angular-route/commits/master
Downloading https://api.github.com/repos/angular/bower-angular-route/tags?per_page=100
Downloading https://api.github.com/repositories/12093618/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=2
Downloading https://api.github.com/repositories/12093618/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=3
Downloading https://api.github.com/repositories/12093618/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=4
Downloading https://api.github.com/repositories/12093618/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=5
Downloading https://api.github.com/repositories/12093618/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=6
Downloading https://api.github.com/repositories/12093618/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=7
Downloading https://api.github.com/repositories/12093618/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=8
Downloading https://api.github.com/repositories/12093618/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=9
Downloading https://api.github.com/repositories/12093618/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=10
Downloading https://api.github.com/repositories/12093618/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=11
Downloading https://api.github.com/repositories/12093618/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=12
Downloading https://api.github.com/repositories/12093618/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=13
Downloading https://api.github.com/repositories/12093618/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=14
Downloading https://api.github.com/repositories/12093618/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=15
acDownloading https://api.github.com/repositories/12093618/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=16
aDownloading https://api.github.com/repositories/12093618/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=17
Downloading https://api.github.com/repositories/12093618/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=18
Downloading https://api.github.com/repositories/12093618/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=19
Downloading https://api.github.com/repositories/12093618/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=20
Downloading https://api.github.com/repositories/12093618/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=21
Downloading https://api.github.com/repositories/12093618/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=22
Downloading https://api.github.com/repositories/12093618/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=23
Downloading https://api.github.com/repositories/12093618/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=24
Downloading https://api.github.com/repositories/12093618/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=25
Downloading https://api.github.com/repositories/12093618/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=26
Downloading https://api.github.com/repositories/12093618/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=27
Downloading https://api.github.com/repositories/12093618/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=28
Downloading https://api.github.com/repositories/12093618/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=29
Downloading https://api.github.com/repositories/12093618/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=30
Downloading https://api.github.com/repositories/12093618/tags?per_page=100&access_token=659c24d6691b6cc8eccf53fed9d2485f413cb4ef&page=31
Downloading https://api.github.com/repos/angular/bower-angular-route/git/refs/heads?per_page=100
francoispluchino commented 8 years ago

Why not.

francoispluchino commented 8 years ago

@schmunk42 If you want to implement this feature.

pelmennoteam commented 8 years ago

Possible workaround is in using of an external cache server (#215).

schmunk42 commented 8 years ago

@francoispluchino Would love to, but chances are not too high :)

schmunk42 commented 8 years ago

Can be closed due to https://github.com/francoispluchino/composer-asset-plugin/issues/226 IMO