-
-
Notifications
You must be signed in to change notification settings - Fork 156
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
Import too many tags ... #69
Comments
Read the FAQs: How to reduce the number of requests for getting the package definitions?. I suggest you put the flag |
Of course i use the |
Can you give me your |
Example with the composer.json: {
"minimum-stability": "dev",
"require": {
"bower-asset/angular": "~1.3@stable"
}
} Console: $ composer install --prefer-dist -v
Loading composer repositories with package information
Installing dependencies (including require-dev)
Reading bower.json of bower-asset/angular (v1.3.3)
Importing tag v1.3.3 (1.3.3.0)
Reading bower.json of bower-asset/angular (v1.3.2)
Importing tag v1.3.2 (1.3.2.0)
Reading bower.json of bower-asset/angular (v1.3.1)
Importing tag v1.3.1 (1.3.1.0)
Reading bower.json of bower-asset/angular (v1.3.0)
Importing tag v1.3.0 (1.3.0.0)
- Installing bower-asset/angular (v1.3.3)
Downloading: 100%
Extracting archive
Writing lock file
Generating autoload files |
composer-asset-plugin version is beta4 |
Ok, I see, the problem is on |
not matter install or update,all will check of 2000+ tags。。this is bad。。。so bad, its make me waste too much time。 i just want use the newst version of |
The plugin is still in For the "install" command, this is OK, but for the "update" command, this is a bug (see the label of this issue). |
i m sorry, I just want to complain about my waste of time 。And there is a other reason is that China's environment that i m living,a big LAN, you know i m talk about... ::>_<:: |
i got new question. when use angular as application require. it works well. {
"minimum-stability": "dev",
"require": {
"bower-asset/angular": "~1.2@stable"
}
} $ composer install --prefer-dist -v
Loading composer repositories with package information
Installing dependencies (including require-dev)
Reading bower.json of bower-asset/angular (v1.3.3)
Importing tag v1.3.3 (1.3.3.0)
Reading bower.json of bower-asset/angular (v1.3.2)
Importing tag v1.3.2 (1.3.2.0)
Reading bower.json of bower-asset/angular (v1.3.1)
Importing tag v1.3.1 (1.3.1.0)
Reading bower.json of bower-asset/angular (v1.3.0)
Importing tag v1.3.0 (1.3.0.0)
Reading bower.json of bower-asset/angular (v1.2.27)
Importing tag v1.1.2.27 (1.1.2.27)
Reading bower.json of bower-asset/angular (v1.2.26)
Importing tag v1.1.2.26 (1.1.2.26)
...
- Installing bower-asset/angular (v1.3.3)
Downloading: 100%
Extracting archive
Writing lock file
Generating autoload files now i want to use some other package depend on angular, its not like above result... {
"minimum-stability": "dev",
"require": {
"callmez/yii2-wechat": "*"
}
} yii2-wechat Composer.json"require": {
"yiisoft/yii2": "*",
...
"bower-asset/angular": "~1.2@stable"
}, ###Console ...
38.4MB/379.24s] Importing tag v1.2.8-patch2093 (1.2.8.0-patch2093)
[38.4MB/379.24s] Reading bower.json of bower-asset/angular (v1.2.8-patch2092)
[38.4MB/379.24s] Importing tag v1.2.8-patch2092 (1.2.8.0-patch2092)
[38.4MB/379.24s] Reading bower.json of bower-asset/angular (v1.2.8-patch2091)
[38.4MB/379.24s] Importing tag v1.2.8-patch2091 (1.2.8.0-patch2091)
[38.4MB/379.25s] Reading bower.json of bower-asset/angular (v1.2.8-patch2090)
[38.4MB/379.25s] Importing tag v1.2.8-patch2090 (1.2.8.0-patch2090)
[38.4MB/379.25s] Reading bower.json of bower-asset/angular (v1.2.8-patch2089)
[38.4MB/379.25s] Importing tag v1.2.8-patch2089 (1.2.8.0-patch2089)
[38.4MB/379.25s] Reading bower.json of bower-asset/angular (v1.2.8-patch2088)
[38.4MB/379.25s] Importing tag v1.2.8-patch2088 (1.2.8.0-patch2088)
[38.4MB/379.25s] Reading bower.json of bower-asset/angular (v1.2.8-patch2087)
[38.4MB/379.25s] Importing tag v1.2.8-patch2087 (1.2.8.0-patch2087)
[38.4MB/379.25s] Reading bower.json of bower-asset/angular (v1.2.8-patch2085)
[38.4MB/379.25s] Importing tag v1.2.8-patch2085 (1.2.8.0-patch2085)
[38.4MB/379.25s] Reading bower.json of bower-asset/angular (v1.2.8-patch2084)
[38.4MB/379.25s] Importing tag v1.2.8-patch2084 (1.2.8.0-patch2084)
[38.4MB/379.25s] Reading bower.json of bower-asset/angular (v1.2.8-patch2083)
[38.4MB/379.25s] Importing tag v1.2.8-patch2083 (1.2.8.0-patch2083)
[38.4MB/379.26s] Reading bower.json of bower-asset/angular (v1.2.8-patch2082)
[38.4MB/379.26s] Importing tag v1.2.8-patch2082 (1.2.8.0-patch2082)
[38.4MB/379.26s] Reading bower.json of bower-asset/angular (v1.2.8-patch2081)
[38.4MB/379.26s] Importing tag v1.2.8-patch2081 (1.2.8.0-patch2081)
[38.4MB/379.26s] Reading bower.json of bower-asset/angular (v1.2.8-patch2080)
[38.4MB/379.26s] Importing tag v1.2.8-patch2080 (1.2.8.0-patch2080)
[38.4MB/379.26s] Reading bower.json of bower-asset/angular (v1.2.8-patch2079)
[38.4MB/379.26s] Importing tag v1.2.8-patch2079 (1.2.8.0-patch2079)
[38.4MB/379.26s] Reading bower.json of bower-asset/angular (v1.2.8-patch2078)
[38.4MB/379.26s] Importing tag v1.2.8-patch2078 (1.2.8.0-patch2078)
[38.4MB/379.26s] Reading bower.json of bower-asset/angular (v1.2.8-patch2077)
[38.4MB/379.26s] Importing tag v1.2.8-patch2077 (1.2.8.0-patch2077)
[38.4MB/379.26s] Reading bower.json of bower-asset/angular (v1.2.8-patch2076)
[38.4MB/379.26s] Importing tag v1.2.8-patch2076 (1.2.8.0-patch2076)
[38.4MB/379.27s] Reading bower.json of bower-asset/angular (v1.2.8-patch2074)
[38.4MB/379.27s] Importing tag v1.2.8-patch2074 (1.2.8.0-patch2074)
[38.4MB/379.27s] Reading bower.json of bower-asset/angular (v1.2.8-patch2073)
[38.4MB/379.27s] Importing tag v1.2.8-patch2073 (1.2.8.0-patch2073)
[38.4MB/379.27s] Reading bower.json of bower-asset/angular (v1.2.8-patch2072)
[38.4MB/379.27s] Importing tag v1.2.8-patch2072 (1.2.8.0-patch2072)
[38.4MB/379.27s] Reading bower.json of bower-asset/angular (v1.2.8-patch2071)
[38.4MB/379.27s] Importing tag v1.2.8-patch2071 (1.2.8.0-patch2071)
[38.4MB/379.28s] Reading bower.json of bower-asset/angular (v1.2.8-patch2070)
[38.4MB/379.28s] Importing tag v1.2.8-patch2070 (1.2.8.0-patch2070)
[38.4MB/379.28s] Reading bower.json of bower-asset/angular (v1.2.8-patch2069)
[38.4MB/379.28s] Importing tag v1.2.8-patch2069 (1.2.8.0-patch2069)
[38.4MB/379.28s] Reading bower.json of bower-asset/angular (v1.2.8-patch2068)
[38.4MB/379.28s] Importing tag v1.2.8-patch2068 (1.2.8.0-patch2068)
[38.4MB/379.28s] Reading bower.json of bower-asset/angular (v1.2.8-patch2067)
[38.4MB/379.28s] Importing tag v1.2.8-patch2067 (1.2.8.0-patch2067)
[38.4MB/379.28s] Reading bower.json of bower-asset/angular (v1.2.8-patch2066)
[38.4MB/379.28s] Importing tag v1.2.8-patch2066 (1.2.8.0-patch2066)
[38.4MB/379.28s] Reading bower.json of bower-asset/angular (v1.2.8-patch2065)
[38.4MB/379.29s] Importing tag v1.2.8-patch2065 (1.2.8.0-patch2065)
[38.4MB/379.29s] Reading bower.json of bower-asset/angular (v1.2.8-patch2064)
[38.4MB/379.29s] Importing tag v1.2.8-patch2064 (1.2.8.0-patch2064)
[38.4MB/379.29s] Reading bower.json of bower-asset/angular (v1.2.8-patch2063)
[38.4MB/379.29s] Importing tag v1.2.8-patch2063 (1.2.8.0-patch2063)
[38.4MB/379.29s] Reading bower.json of bower-asset/angular (v1.2.8-patch2062)
[38.4MB/379.29s] Importing tag v1.2.8-patch2062 (1.2.8.0-patch2062)
[38.4MB/379.29s] Reading bower.json of bower-asset/angular (v1.2.8-patch2061)
[38.4MB/379.30s] Importing tag v1.2.8-patch2061 (1.2.8.0-patch2061)
[38.4MB/379.30s] Reading bower.json of bower-asset/angular (v1.2.8-patch2060)
[38.4MB/379.30s] Importing tag v1.2.8-patch2060 (1.2.8.0-patch2060)
[38.4MB/379.30s] Reading bower.json of bower-asset/angular (v1.2.8-patch2059)
... its still import whole release tags. |
Because, in reality, you do an As a result, all higher versions of the installed version is analyzed by the Solver on |
Ok, Is the problem difficult too fix ?. Hope to quick fix. And thanks very much to your work!! |
Given that the import filter is a Hack to prevent the Composer to retrieve all versions, the fix can be fast or be more complex (I do not think so, but you never know). If you're interested, you can propose a fix. |
Sorry, I'm not familiar with the structure of the composer. only i can help is just test your fix solution |
Fixed by 3f23fe3. |
looks like nothing to change... Maybe I am not understand what you mean. scenario 1Composer.json {
"minimum-stability": "dev",
"require": {
"bower-asset/angular": "~1.2@stable"
}
} scenario 2Composer.json {
"minimum-stability": "dev",
"require": {
"callmez/yii2-wechat": "*"
}
} Yii2-wechat Composer.json "require": {
...
"bower-asset/angular": "~1.2@stable"
} In my opinion scenario 2 should be import angular tags same to scenario 1, but now there is nothing to change. #scenario 1 Console $ composer install --verbose --profile
[6.7MB/0.35s] Loading composer repositories with package information
[7.0MB/2.52s] Installing dependencies (including require-dev)
[35.3MB/116.43s] Reading bower.json of bower-asset/angular (v1.3.4)
[35.3MB/116.43s] Importing tag v1.3.4 (1.3.4.0)
[35.3MB/116.43s] Reading bower.json of bower-asset/angular (v1.3.3)
[35.3MB/116.43s] Importing tag v1.3.3 (1.3.3.0)
[35.3MB/116.43s] Reading bower.json of bower-asset/angular (v1.3.2)
[35.3MB/116.43s] Importing tag v1.3.2 (1.3.2.0)
[35.3MB/116.43s] Reading bower.json of bower-asset/angular (v1.3.1)
[35.3MB/116.43s] Importing tag v1.3.1 (1.3.1.0)
[35.3MB/116.43s] Reading bower.json of bower-asset/angular (v1.3.0)
[35.3MB/116.44s] Importing tag v1.3.0 (1.3.0.0)
[35.3MB/116.44s] Reading bower.json of bower-asset/angular (v1.2.27)
[35.3MB/116.44s] Importing tag v1.2.27 (1.2.27.0)
[35.3MB/116.44s] Reading bower.json of bower-asset/angular (v1.2.26)
[35.3MB/116.44s] Importing tag v1.2.26 (1.2.26.0)
[35.3MB/116.44s] Reading bower.json of bower-asset/angular (v1.2.25)
[35.3MB/116.44s] Importing tag v1.2.25 (1.2.25.0)
[35.3MB/116.44s] Reading bower.json of bower-asset/angular (v1.2.24)
[35.3MB/116.44s] Importing tag v1.2.24 (1.2.24.0)
[35.3MB/116.44s] Reading bower.json of bower-asset/angular (v1.2.23)
[35.3MB/116.44s] Importing tag v1.2.23 (1.2.23.0)
[35.3MB/116.44s] Reading bower.json of bower-asset/angular (v1.2.22)
[35.3MB/116.44s] Importing tag v1.2.22 (1.2.22.0)
[35.3MB/116.45s] Reading bower.json of bower-asset/angular (v1.2.21)
[35.3MB/116.45s] Importing tag v1.2.21 (1.2.21.0)
[35.3MB/116.45s] Reading bower.json of bower-asset/angular (v1.2.20)
[35.3MB/116.45s] Importing tag v1.2.20 (1.2.20.0)
[35.3MB/116.45s] Reading bower.json of bower-asset/angular (v1.2.19)
[35.3MB/116.45s] Importing tag v1.2.19 (1.2.19.0)
[35.3MB/116.45s] Reading bower.json of bower-asset/angular (v1.2.18)
[35.3MB/116.45s] Importing tag v1.2.18 (1.2.18.0)
[35.3MB/116.45s] Reading bower.json of bower-asset/angular (v1.2.17)
[35.3MB/116.45s] Importing tag v1.2.17 (1.2.17.0)
[35.3MB/116.45s] Reading bower.json of bower-asset/angular (v1.2.16)
[35.3MB/116.45s] Importing tag v1.2.16 (1.2.16.0)
[35.3MB/116.45s] Reading bower.json of bower-asset/angular (v1.2.15)
[35.3MB/116.45s] Importing tag v1.2.15 (1.2.15.0)
[35.3MB/116.45s] Reading bower.json of bower-asset/angular (v1.2.14)
[35.3MB/116.46s] Importing tag v1.2.14 (1.2.14.0)
[35.3MB/116.46s] Reading bower.json of bower-asset/angular (v1.2.13)
[35.3MB/116.46s] Importing tag v1.2.13 (1.2.13.0)
[35.3MB/116.46s] Reading bower.json of bower-asset/angular (v1.2.12)
[35.3MB/116.46s] Importing tag v1.2.12 (1.2.12.0)
[35.3MB/116.46s] Reading bower.json of bower-asset/angular (v1.2.11)
[35.3MB/116.46s] Importing tag v1.2.11 (1.2.11.0)
[35.3MB/116.46s] Reading bower.json of bower-asset/angular (v1.2.10)
[35.3MB/116.46s] Importing tag v1.2.10 (1.2.10.0)
[35.3MB/116.46s] Reading bower.json of bower-asset/angular (v1.2.9)
[35.3MB/116.46s] Importing tag v1.2.9 (1.2.9.0)
[35.3MB/116.46s] Reading bower.json of bower-asset/angular (v1.2.8)
[35.3MB/116.47s] Importing tag v1.2.8 (1.2.8.0)
[35.3MB/116.47s] Reading bower.json of bower-asset/angular (v1.2.7)
[35.3MB/116.47s] Importing tag v1.2.7 (1.2.7.0)
[35.3MB/116.47s] Reading bower.json of bower-asset/angular (v1.2.6)
[35.3MB/116.47s] Importing tag v1.2.6 (1.2.6.0)
[35.3MB/116.47s] Reading bower.json of bower-asset/angular (v1.2.5)
[35.3MB/116.47s] Importing tag v1.2.5 (1.2.5.0)
[35.3MB/116.47s] Reading bower.json of bower-asset/angular (v1.2.4)
[35.3MB/116.47s] Importing tag v1.2.4 (1.2.4.0)
[35.3MB/116.47s] Reading bower.json of bower-asset/angular (v1.2.3)
[35.3MB/116.47s] Importing tag v1.2.3 (1.2.3.0)
[35.3MB/116.47s] Reading bower.json of bower-asset/angular (v1.2.2)
[35.3MB/116.48s] Importing tag v1.2.2 (1.2.2.0)
[35.3MB/116.48s] Reading bower.json of bower-asset/angular (v1.2.1)
[35.3MB/116.48s] Importing tag v1.2.1 (1.2.1.0)
[35.3MB/116.48s] Reading bower.json of bower-asset/angular (v1.2.0)
[35.3MB/116.48s] Importing tag v1.2.0 (1.2.0.0)
[36.8MB/116.52s] - Installing bower-asset/angular (v1.3.4)
[37.2MB/116.53s] Loading from cache
[37.2MB/116.53s] Extracting archive
[37.2MB/116.64s]
[36.1MB/116.65s] Writing lock file
[36.1MB/116.65s] Generating autoload files
Memory usage: 36.06MB (peak: 37.5MB), time: 116.66s #scenario 2 Console ...
[73.2MB/295.75s] Reading bower.json of bower-asset/angular (v1.3.0-patch2699)
[73.2MB/295.75s] Importing tag v1.3.0-patch2699 (1.3.0.0-patch2699)
[73.2MB/295.75s] Reading bower.json of bower-asset/angular (v1.3.0-patch2698)
[73.2MB/295.75s] Importing tag v1.3.0-patch2698 (1.3.0.0-patch2698)
[73.2MB/295.76s] Reading bower.json of bower-asset/angular (v1.3.0-patch2697)
[73.2MB/295.76s] Importing tag v1.3.0-patch2697 (1.3.0.0-patch2697)
[73.2MB/295.76s] Reading bower.json of bower-asset/angular (v1.3.0-patch2696)
[73.2MB/295.76s] Importing tag v1.3.0-patch2696 (1.3.0.0-patch2696)
[73.2MB/295.76s] Reading bower.json of bower-asset/angular (v1.3.0-patch2695)
[73.2MB/295.76s] Importing tag v1.3.0-patch2695 (1.3.0.0-patch2695)
[73.2MB/295.76s] Reading bower.json of bower-asset/angular (v1.3.0-patch2694)
[73.2MB/295.76s] Importing tag v1.3.0-patch2694 (1.3.0.0-patch2694)
[73.2MB/295.76s] Reading bower.json of bower-asset/angular (v1.3.0-patch2693)
[73.2MB/295.76s] Importing tag v1.3.0-patch2693 (1.3.0.0-patch2693)
[73.2MB/295.76s] Reading bower.json of bower-asset/angular (v1.3.0-patch2692)
[73.2MB/295.76s] Importing tag v1.3.0-patch2692 (1.3.0.0-patch2692)
[73.2MB/295.76s] Reading bower.json of bower-asset/angular (v1.3.0-patch2691)
[73.2MB/295.76s] Importing tag v1.3.0-patch2691 (1.3.0.0-patch2691)
[73.2MB/295.76s] Reading bower.json of bower-asset/angular (v1.3.0-patch2690)
[73.2MB/295.76s] Importing tag v1.3.0-patch2690 (1.3.0.0-patch2690)
... |
For your Pour votre scenario 2, this is normal, because the inline flag is not used. The inline flag is used only in the root Composer package, This is the native behavior of Composer. |
if you said its normal, |
Normal = Native behavior of the Composer. Natively, Composer retrieves all versions for each VCS Repository. However, I added some improvements (package lazy loading and import filter) to prevent Composer retrieves all versions unnecessarily. Given that you indicate in your root Composer package It is recommended to maintain Given that you use Example of root composer package, which retrieves that only one version: {
"minimum-stability": "dev",
"require": {
"bower-asset/angular": "~1.3@stable"
}
} |
Add the checking of the |
You can now use the option {
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"bower-asset/angular": "~1.3"
}
} The import filter of packages will use the |
because i m designing a yii2 extension, There is no reason to set angular to root Composer package. |
In this case, you do not have a problem: the user of your extension configures the Composer its root package itself. It is not possible to do better, unfortunately. There may be a solution, but it breaks compatibility: do not include the "build" versions by default. |
for package manage ,i guess php cant do better than js,anyway, thanks to your help! |
This is not the language, but the implementation of the features. And I'm blocked by the Solver SAT of Composer. This plugin is only one solution to a problem, it is not perfect, and you are free to choose the solution that best suits you. Of course, I always try to improve the user experience, but for moment, we are reaching the limits of Composer (see composer/composer#3283). I suggest you to read the issues concerning the performance. |
After the discussion #60 for using But it is true that the performance is a concern for me, and I think I'll eventually deploy in the General Availability, the "1.0" version with this approach, and make a version |
Add Automatically skip the |
is this can fix the problem? |
Yes, by default, the plugin skips all |
without |
Yes, without |
ok,that really helpful, great job 。哈哈! |
sad, bower.json of bower-asset/angular-resource took 7 hours, and now it move to patch 2769. |
any network issue would break this. |
@xklake See the doc to filter the import and many many time. |
when i want to install angular bower package, will wait long time to import tags(2000+ tags....),
in the end is still get error.......fuxx..
Is there any way to make this fast....
the composer settings
"bower-asset/angular": "1.2.*@stable | 1.3.*@stable"
The text was updated successfully, but these errors were encountered: