compose/pkg
Sebastiaan van Stijn 8caa6f1f3e
pkg/api: replace uuid for basic random id
The uuid package in distribution was created as a utility for the distribution
project itself, to cut down external dependencies (see [1][1]).

For compose, this has the reverse effect, as it now brings all the dependencies
of the distribution module with it.

This patch switches to the uuid generation to crypto/rand to produce a random
id. I was considering using a different uuid implementation, or docker's
"stringid.GenerateRandomID", but all of those are doing more than needed,
so keep it simple.

Currently, this change has little effect, because compose also uses the
distribution module for other purposes, but the distribution project is
in the process of moving the "reference" package to a separate module,
in which case we don't want to depend on the distribution module only for
the uuid package.

[1]: 36e34a55ad

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-08-31 10:13:32 +02:00
..
api pkg/api: replace uuid for basic random id 2023-08-31 10:13:32 +02:00
compose add support for attributes exposed by `docker ps` 2023-08-25 16:36:45 +02:00
e2e pkg/api: replace uuid for basic random id 2023-08-31 10:13:32 +02:00
mocks Add `docker compose wait` 2023-06-30 16:07:03 +02:00
progress progress: minor correctness fixes (#10871) 2023-08-03 15:14:17 -04:00
prompt use a simpler prompt implementation when we lack a terminal 2023-01-09 10:28:16 +01:00
remote watch: only allow a single instance per-project 2023-08-25 15:49:28 +02:00
utils logs: fix for missing output on container exit (#10925) 2023-08-23 08:57:18 -04:00
watch replace dockerfile/dockerignore with patternmatcher/ignorefile 2023-08-23 00:43:17 +02:00