Files
typeshed/stubs
Adam Dangoor 55b552121b Fix type of Docker BuildError.build_log (#11917)
In working this out I also had a go at changing the json_stream
functions used to create every BuildError in docker-py.

There are two `BuildError`s raised in docker-py, both in
b6464dbed9/docker/models/images.py (L304-L315)

```python
result_stream, internal_stream = itertools.tee(json_stream(resp))
for chunk in internal_stream:
    if 'error' in chunk:
	raise BuildError(chunk['error'], result_stream)
    if 'stream' in chunk:
	match = re.search(
	    r'(^Successfully built |sha256:)([0-9a-f]+)$',
	    chunk['stream']
	)
	if match:
	    image_id = match.group(2)
    last_event = chunk
if image_id:
    return (self.get(image_id), result_stream)
raise BuildError(last_event or 'Unknown', result_stream)
```
2024-05-18 08:26:17 -04:00
..
2024-05-15 14:56:43 -04:00
2024-04-22 15:03:38 +02:00
2024-02-04 16:38:55 -08:00
2024-04-22 14:58:21 +02:00
2024-05-09 19:50:07 -07:00
2024-05-18 06:51:24 -04:00
2024-04-24 14:09:16 +02:00
2024-04-08 12:51:48 -04:00
2024-02-04 16:38:55 -08:00
2024-04-24 14:09:16 +02:00
2024-02-27 21:54:57 +02:00
2024-04-24 14:09:16 +02:00
2024-04-01 09:49:37 +01:00
2024-04-24 14:09:16 +02:00
2024-05-11 01:40:48 +01:00
2024-04-24 07:58:52 -07:00
2024-04-11 10:07:22 +03:00
2024-04-24 14:09:16 +02:00
2024-05-04 17:33:09 +02:00
2024-04-22 17:24:08 +02:00
2024-04-24 14:09:16 +02:00
2024-04-24 14:09:16 +02:00