diff --git a/swh/lister/nixguix/lister.py b/swh/lister/nixguix/lister.py --- a/swh/lister/nixguix/lister.py +++ b/swh/lister/nixguix/lister.py @@ -21,6 +21,7 @@ import logging from pathlib import Path import random +from random import shuffle from typing import Any, Dict, Iterator, List, Optional, Tuple, Union from urllib.parse import urlparse @@ -264,7 +265,10 @@ # grep '"type"' nixpkgs-sources-unstable.json | sort | uniq # "type": "url", - for artifact in raw_data["sources"]: + sources = raw_data["sources"] + shuffle(sources) + + for artifact in sources: artifact_type = artifact["type"] if artifact_type in VCS_SUPPORTED: plain_url = artifact[VCS_KEYS_MAPPING[artifact_type]["url"]]