Skip to content

Fix index-state race condition in bump-plutus-version workflow#71

Merged
zeme-wana merged 1 commit intomainfrom
claude/competent-leavitt
Mar 17, 2026
Merged

Fix index-state race condition in bump-plutus-version workflow#71
zeme-wana merged 1 commit intomainfrom
claude/competent-leavitt

Conversation

@zeme-wana
Copy link
Collaborator

Derive index-state timestamps from flake.lock lastModified instead of cabal update --dry-run. The live servers can report timestamps newer than what is available in the flake-pinned CHaP/hackage repos, causing Nix builds to fail with "index-state is older than requested".

  • Move nix flake update before timestamp extraction
  • Replace cabal update --dry-run with jq on flake.lock
  • Remove unused Install Cabal step
  • Subtract 2-hour safety margin from commit timestamps

Derive index-state timestamps from flake.lock lastModified instead of
cabal update --dry-run. The live servers can report timestamps newer
than what is available in the flake-pinned CHaP/hackage repos, causing
Nix builds to fail with "index-state is older than requested".

- Move nix flake update before timestamp extraction
- Replace cabal update --dry-run with jq on flake.lock
- Remove unused Install Cabal step
- Subtract 2-hour safety margin from commit timestamps
@zeme-wana zeme-wana merged commit 29e1eb0 into main Mar 17, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant