diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f5be8603ff78615aac5642a4c6b9f4e95b618f8f..7446a49f03c4ef9a36169035e116e29e378ea708 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -118,6 +118,7 @@ list-environments:
     - poetry install --only main
     - poetry run lbn-list-environments --output environments.yaml
     - poetry run lbn-env-hashes --output env-hashes.yaml
+    - cat env-hashes.yaml
   artifacts:
     paths:
       - environments.yaml
diff --git a/lhcbnightlyconf/env/legacy-template.yml b/lhcbnightlyconf/env/legacy-template.yml
index a614848c88a723c57927ffeb28df1e8e57e36aff..e5e6bb3e52a4e6868375149655e42415b8ace805 100644
--- a/lhcbnightlyconf/env/legacy-template.yml
+++ b/lhcbnightlyconf/env/legacy-template.yml
@@ -27,4 +27,4 @@ dependencies:
   - future
   - pip
   - pip:
-    - git+https://gitlab.cern.ch/lhcb-core/LbNightlyTools.git@4.0.0a-24-g051d6479
+    - git+https://gitlab.cern.ch/lhcb-core/LbNightlyTools.git@1c38d3f4e83dff686ec9220547fecca9f46f30c0
diff --git a/lhcbnightlyconf/env/legacy.yml b/lhcbnightlyconf/env/legacy.yml
index 9daaa8b8e7ab1f47b3fbb2a3e6f297e19e2cbc05..19c5cf7861e47b5d80f7e4f73ec44e503dd33439 100644
--- a/lhcbnightlyconf/env/legacy.yml
+++ b/lhcbnightlyconf/env/legacy.yml
@@ -113,4 +113,4 @@ dependencies:
   - zstandard=0.19.0=py311haa97af0_2
   - zstd=1.5.2=h3eb15da_6
   - pip:
-      - git+https://gitlab.cern.ch/lhcb-core/LbNightlyTools.git@4.0.0a-24-g051d6479
+      - git+https://gitlab.cern.ch/lhcb-core/LbNightlyTools.git@1c38d3f4e83dff686ec9220547fecca9f46f30c0