# BR-CFG-07

Quand une référence du catalogue se termine par huit caractères hexadécimaux (un commit), alors la réponse est mise en cache sur disque et n'est plus jamais téléchargée.

Défini dans [Configurer un pipeline par fichier, catalogue et ligne de commande](https://docs.piighost.dev/fr/domain/operations/configuration-and-catalog/#br-cfg-07).

## Où vit la règle

- [`_read()`](https://github.com/Athroniaeth/piighost/blob/master/src/piighost/catalog.py#L170)

## Tests directs

Aucun test n'appelle ce code directement.

## Tests indirects

- [`tests/test_catalog.py::TestCache::test_a_moving_selector_is_never_cached`](https://github.com/Athroniaeth/piighost/blob/master/tests/test_catalog.py#L233)
- [`tests/test_catalog.py::TestCache::test_a_pinned_reference_is_fetched_once`](https://github.com/Athroniaeth/piighost/blob/master/tests/test_catalog.py#L214)
- [`tests/test_catalog.py::TestCache::test_the_cache_can_be_turned_off`](https://github.com/Athroniaeth/piighost/blob/master/tests/test_catalog.py#L243)
- [`tests/test_catalog.py::TestCache::test_the_cache_lives_under_catalog`](https://github.com/Athroniaeth/piighost/blob/master/tests/test_catalog.py#L223)
- [`tests/test_catalog.py::TestPull::test_a_body_that_is_not_a_detector_is_refused`](https://github.com/Athroniaeth/piighost/blob/master/tests/test_catalog.py#L188)
- [`tests/test_catalog.py::TestPull::test_a_catalog_that_is_not_http_is_refused`](https://github.com/Athroniaeth/piighost/blob/master/tests/test_catalog.py#L195)
- [`tests/test_catalog.py::TestPull::test_a_model_detector_is_refused`](https://github.com/Athroniaeth/piighost/blob/master/tests/test_catalog.py#L182)
- [`tests/test_catalog.py::TestPull::test_an_argument_beats_the_environment`](https://github.com/Athroniaeth/piighost/blob/master/tests/test_catalog.py#L173)
- [`tests/test_catalog.py::TestPull::test_an_unreachable_catalog_raises`](https://github.com/Athroniaeth/piighost/blob/master/tests/test_catalog.py#L200)
- [`tests/test_catalog.py::TestPull::test_asks_the_detector_alone_at_the_public_catalog`](https://github.com/Athroniaeth/piighost/blob/master/tests/test_catalog.py#L133)
- [`tests/test_catalog.py::TestPull::test_returns_the_patterns_in_registry_order`](https://github.com/Athroniaeth/piighost/blob/master/tests/test_catalog.py#L128)
- [`tests/test_catalog.py::TestPull::test_the_1x_variable_is_still_read`](https://github.com/Athroniaeth/piighost/blob/master/tests/test_catalog.py#L153)
- [`tests/test_catalog.py::TestPull::test_the_environment_names_a_private_catalog`](https://github.com/Athroniaeth/piighost/blob/master/tests/test_catalog.py#L144)
- [`tests/test_catalog.py::TestPull::test_the_new_variable_beats_the_1x_one`](https://github.com/Athroniaeth/piighost/blob/master/tests/test_catalog.py#L163)
- [`tests/test_catalog.py::TestPullConfig::test_a_detector_and_a_configuration_are_cached_apart`](https://github.com/Athroniaeth/piighost/blob/master/tests/test_catalog.py#L289)
- [`tests/test_catalog.py::TestPullConfig::test_a_pinned_configuration_is_fetched_once`](https://github.com/Athroniaeth/piighost/blob/master/tests/test_catalog.py#L279)
- [`tests/test_catalog.py::TestPullConfig::test_asks_the_whole_pipeline`](https://github.com/Athroniaeth/piighost/blob/master/tests/test_catalog.py#L270)
- [`tests/test_catalog.py::TestUserAgent::test_a_pull_names_piighost_as_its_client`](https://github.com/Athroniaeth/piighost/blob/master/tests/test_catalog.py#L350)

## Utilisé par

- [`pull()`](https://github.com/Athroniaeth/piighost/blob/master/src/piighost/catalog.py#L117)
- [`pull_config()`](https://github.com/Athroniaeth/piighost/blob/master/src/piighost/catalog.py#L144)

Lu dans le graphe du code que construit graphify, aux emplacements que donne la documentation métier.
