Skip to content

fix(CI): bootstrap.py no longer reuses a stale package database - #12341

Open
zlonast wants to merge 1 commit into
haskell:masterfrom
zlonast:zlonast/bootstrap
Open

fix(CI): bootstrap.py no longer reuses a stale package database#12341
zlonast wants to merge 1 commit into
haskell:masterfrom
zlonast:zlonast/bootstrap

Conversation

@zlonast

@zlonast zlonast commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

fix: #12311

The package database is now deleted and recreated from scratch on every
bootstrap run, making the script idempotent with respect to a dirty or
polluted _build. Additionally, the Bootstrap workflow now hashes the
.cabal files of the local packages into its cache key, so caches are no
longer shared between branches that build different versions of the local
packages.

  $ python3 bootstrap/bootstrap.py --bootstrap-sources bootstrap-sources.tar.gz
+ Deleting stale package database _build/packages.conf
  Creating package database _build/packages.conf
  Using ...

Template B: This PR does not modify behaviour or interface

E.g. the PR only touches documentation or tests, does refactorings, etc.

Include the following checklist in your PR:

  • Patches conform to the coding conventions.
  • Is this a PR that fixes CI? If so, it will need to be backported to older cabal release branches (ask maintainers for directions).

@ulysses4ever ulysses4ever left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me.

@zlonast zlonast added the merge me Tell Mergify Bot to merge label Sep 9, 2026
@mergify mergify Bot added the ready and waiting Mergify is waiting out the cooldown period label Sep 9, 2026
@haskell haskell deleted a comment from humh25 Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

attention: needs-backport 3.18 attention: needs-review merge me Tell Mergify Bot to merge ready and waiting Mergify is waiting out the cooldown period

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bootstrap: stale CI cache makes bootstrap.py mix Cabal-syntax-3.18.1.0 and Cabal-syntax-3.19.0.0 in the bootstrap package DB

3 participants