mirror of
https://github.com/89luca89/distrobox.git
synced 2026-08-19 01:14:49 -05:00
Generate the random ephemeral container name in a loop that re-rolls if the name already exists according to the container manager, and fail loudly after a small number of attempts. Dry-run mode bypasses the existence check to match the rest of the dry-run pipeline. Also extends MockContainerManager with an optional ExistsFn override so tests can simulate collisions without changing behavior for existing tests (the default still returns false).