Page MenuHomeDevCentral

Fix Composer package keruald/dockerhub
Closed, ResolvedPublic

Description

https://packagist.org/packages/keruald/dockerhub doesn't seem to be installable:

$ composer require keruald/dockerhub

                                                                                                                                                   
[InvalidArgumentException]                                                                                                                         
Could not find package keruald/dockerhub at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability

Yet, we've a version on Packagist.

Event Timeline

Can't repro on an empty folder:

Ysul
$ cd /tmp/foo
$ composer require keruald/dockerhub
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing guzzlehttp/promises (1.2.0)
    Loading from cache

  - Installing psr/http-message (1.0.1)
    Loading from cache

  - Installing guzzlehttp/psr7 (1.3.1)
    Loading from cache

  - Installing guzzlehttp/guzzle (6.2.1)
    Loading from cache

  - Installing keruald/dockerhub (0.0.2)
    Downloading: 100%         

Writing lock file
Generating autoload files

Generated files are:

composer.json
{
    "require": {
        "keruald/dockerhub": "^0.0.2"
    }
}
composer.lock
…
`"minimum-stability": "stable"`,

1{
2 "_readme": [
3 "This file locks the dependencies of your project to a known state",
4 "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
5 "This file is @generated automatically"
6 ],
7 "hash": "07e8762570656d943bd9e6da3233559d",
8 "content-hash": "d693f56be03105e5507eb1e69cc5d7a7",
9 "packages": [
10 {
11 "name": "guzzlehttp/guzzle",
12 "version": "6.2.1",
13 "source": {
14 "type": "git",
15 "url": "https://github.com/guzzle/guzzle.git",
16 "reference": "3f808fba627f2c5b69e2501217bf31af349c1427"
17 },
18 "dist": {
19 "type": "zip",
20 "url": "https://api.github.com/repos/guzzle/guzzle/zipball/3f808fba627f2c5b69e2501217bf31af349c1427",
21 "reference": "3f808fba627f2c5b69e2501217bf31af349c1427",
22 "shasum": ""
23 },
24 "require": {
25 "guzzlehttp/promises": "^1.0",
26 "guzzlehttp/psr7": "^1.3.1",
27 "php": ">=5.5"
28 },
29 "require-dev": {
30 "ext-curl": "*",
31 "phpunit/phpunit": "^4.0",
32 "psr/log": "^1.0"
33 },
34 "type": "library",
35 "extra": {
36 "branch-alias": {
37 "dev-master": "6.2-dev"
38 }
39 },
40 "autoload": {
41 "files": [
42 "src/functions_include.php"
43 ],
44 "psr-4": {
45 "GuzzleHttp\\": "src/"
46 }
47 },
48 "notification-url": "https://packagist.org/downloads/",
49 "license": [
50 "MIT"
51 ],
52 "authors": [
53 {
54 "name": "Michael Dowling",
55 "email": "mtdowling@gmail.com",
56 "homepage": "https://github.com/mtdowling"
57 }
58 ],
59 "description": "Guzzle is a PHP HTTP client library",
60 "homepage": "http://guzzlephp.org/",
61 "keywords": [
62 "client",
63 "curl",
64 "framework",
65 "http",
66 "http client",
67 "rest",
68 "web service"
69 ],
70 "time": "2016-07-15 17:22:37"
71 },
72 {
73 "name": "guzzlehttp/promises",
74 "version": "1.2.0",
75 "source": {
76 "type": "git",
77 "url": "https://github.com/guzzle/promises.git",
78 "reference": "c10d860e2a9595f8883527fa0021c7da9e65f579"
79 },
80 "dist": {
81 "type": "zip",
82 "url": "https://api.github.com/repos/guzzle/promises/zipball/c10d860e2a9595f8883527fa0021c7da9e65f579",
83 "reference": "c10d860e2a9595f8883527fa0021c7da9e65f579",
84 "shasum": ""
85 },
86 "require": {
87 "php": ">=5.5.0"
88 },
89 "require-dev": {
90 "phpunit/phpunit": "~4.0"
91 },
92 "type": "library",
93 "extra": {
94 "branch-alias": {
95 "dev-master": "1.0-dev"
96 }
97 },
98 "autoload": {
99 "psr-4": {
100 "GuzzleHttp\\Promise\\": "src/"
101 },
102 "files": [
103 "src/functions_include.php"
104 ]
105 },
106 "notification-url": "https://packagist.org/downloads/",
107 "license": [
108 "MIT"
109 ],
110 "authors": [
111 {
112 "name": "Michael Dowling",
113 "email": "mtdowling@gmail.com",
114 "homepage": "https://github.com/mtdowling"
115 }
116 ],
117 "description": "Guzzle promises library",
118 "keywords": [
119 "promise"
120 ],
121 "time": "2016-05-18 16:56:05"
122 },
123 {
124 "name": "guzzlehttp/psr7",
125 "version": "1.3.1",
126 "source": {
127 "type": "git",
128 "url": "https://github.com/guzzle/psr7.git",
129 "reference": "5c6447c9df362e8f8093bda8f5d8873fe5c7f65b"
130 },
131 "dist": {
132 "type": "zip",
133 "url": "https://api.github.com/repos/guzzle/psr7/zipball/5c6447c9df362e8f8093bda8f5d8873fe5c7f65b",
134 "reference": "5c6447c9df362e8f8093bda8f5d8873fe5c7f65b",
135 "shasum": ""
136 },
137 "require": {
138 "php": ">=5.4.0",
139 "psr/http-message": "~1.0"
140 },
141 "provide": {
142 "psr/http-message-implementation": "1.0"
143 },
144 "require-dev": {
145 "phpunit/phpunit": "~4.0"
146 },
147 "type": "library",
148 "extra": {
149 "branch-alias": {
150 "dev-master": "1.4-dev"
151 }
152 },
153 "autoload": {
154 "psr-4": {
155 "GuzzleHttp\\Psr7\\": "src/"
156 },
157 "files": [
158 "src/functions_include.php"
159 ]
160 },
161 "notification-url": "https://packagist.org/downloads/",
162 "license": [
163 "MIT"
164 ],
165 "authors": [
166 {
167 "name": "Michael Dowling",
168 "email": "mtdowling@gmail.com",
169 "homepage": "https://github.com/mtdowling"
170 }
171 ],
172 "description": "PSR-7 message implementation",
173 "keywords": [
174 "http",
175 "message",
176 "stream",
177 "uri"
178 ],
179 "time": "2016-06-24 23:00:38"
180 },
181 {
182 "name": "keruald/dockerhub",
183 "version": "0.0.2",
184 "source": {
185 "type": "git",
186 "url": "https://github.com/keruald/dockerhub.git",
187 "reference": "dde22992fea7e4a45f9b41ded224b261a370af99"
188 },
189 "dist": {
190 "type": "zip",
191 "url": "https://api.github.com/repos/keruald/dockerhub/zipball/dde22992fea7e4a45f9b41ded224b261a370af99",
192 "reference": "dde22992fea7e4a45f9b41ded224b261a370af99",
193 "shasum": ""
194 },
195 "require": {
196 "guzzlehttp/guzzle": "~6.0",
197 "guzzlehttp/psr7": "~1.3",
198 "php": ">=5.6.0"
199 },
200 "require-dev": {
201 "phpunit/phpunit": "5.0.*",
202 "psy/psysh": "dev-master",
203 "squizlabs/php_codesniffer": "*"
204 },
205 "type": "library",
206 "autoload": {
207 "psr-4": {
208 "Keruald\\DockerHub\\": "src/",
209 "Keruald\\DockerHub\\Tests\\": "tests/"
210 }
211 },
212 "notification-url": "https://packagist.org/downloads/",
213 "license": [
214 "BSD-2-Clause"
215 ],
216 "authors": [
217 {
218 "name": "Sébastien Santoro",
219 "email": "dereckson@espace-win.org"
220 }
221 ],
222 "description": "Docker Hub API client",
223 "keywords": [
224 "Docker Hub",
225 "docker",
226 "keruald"
227 ],
228 "time": "2016-09-03 02:07:49"
229 },
230 {
231 "name": "psr/http-message",
232 "version": "1.0.1",
233 "source": {
234 "type": "git",
235 "url": "https://github.com/php-fig/http-message.git",
236 "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
237 },
238 "dist": {
239 "type": "zip",
240 "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
241 "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
242 "shasum": ""
243 },
244 "require": {
245 "php": ">=5.3.0"
246 },
247 "type": "library",
248 "extra": {
249 "branch-alias": {
250 "dev-master": "1.0.x-dev"
251 }
252 },
253 "autoload": {
254 "psr-4": {
255 "Psr\\Http\\Message\\": "src/"
256 }
257 },
258 "notification-url": "https://packagist.org/downloads/",
259 "license": [
260 "MIT"
261 ],
262 "authors": [
263 {
264 "name": "PHP-FIG",
265 "homepage": "http://www.php-fig.org/"
266 }
267 ],
268 "description": "Common interface for HTTP messages",
269 "homepage": "https://github.com/php-fig/http-message",
270 "keywords": [
271 "http",
272 "http-message",
273 "psr",
274 "psr-7",
275 "request",
276 "response"
277 ],
278 "time": "2016-08-06 14:39:51"
279 }
280 ],
281 "packages-dev": [],
282 "aliases": [],
283 "minimum-stability": "stable",
284 "stability-flags": [],
285 "prefer-stable": false,
286 "prefer-lowest": false,
287 "platform": [],
288 "platform-dev": []
289}

Works correctly now.

Perhaps yesterday a caching issue with Packagist.

c9
$ composer require keruald/dockerhub
Using version ^0.0.2 for keruald/dockerhub
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing keruald/mailgun (v0.0.1)
    Downloading: 100%         

  - Installing keruald/dockerhub (0.0.2)
    Downloading: 100%         

Writing lock file
Generating autoload files
dereckson changed the task status from Invalid to Resolved.Sep 3 2016, 13:21

[ Set status as Resolved, as the original issue was a correct issue to solve. The fact we can't repro doesn't mean it was invalid at writing time, but the issue was solved, for example by a caching invalidation on Packagist side. ]