Skip to content

Commit 7dc55f9

Browse files
committed
fix handling of index-state
1 parent 47c6b05 commit 7dc55f9

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
@@ -968,9 +968,14 @@ _build/bindist/tests.tar.gz:
968968

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

975980
# --- Configure and source preparation ---
976981

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)