Skip to content

Commit bfd71fd

Browse files
committed
fix handling of index-state
1 parent f38bc20 commit bfd71fd

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,9 +969,14 @@ _build/bindist/tests.tar.gz:
969969

970970
$(GHC1) $(GHC2): | hackage
971971
hackage: _build/packages/hackage.haskell.org/01-index.tar.gz
972+
973+
# Always run cabal update. This makes sure that the index file won't go stale,
974+
# whatever index-state we set in the project file. Reproducibility is left to
975+
# index-state.
976+
.PHONY: _build/packages/hackage.haskell.org/01-index.tar.gz
972977
_build/packages/hackage.haskell.org/01-index.tar.gz: | $(CABAL)
973978
@mkdir -p $(@D)
974-
$(CABAL) $(CABAL_ARGS) update --index-state @1745256340
979+
$(CABAL) $(CABAL_ARGS) update
975980

976981
# --- Configure and source preparation ---
977982

cabal.project.stage1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
index-state: 2025-10-26T19:17:08Z
2+
13
packages:
24
-- NOTE: we need rts-headers, because the _newly_ built compiler depends
35
-- on these potentially _new_ headers, we must not rely on those from
@@ -37,6 +39,7 @@ packages:
3739
utils/ghc-toolchain
3840
utils/ghc-toolchain/exe
3941

42+
4043
benchmarks: False
4144
tests: False
4245
allow-boot-library-installs: True

0 commit comments

Comments
 (0)