Skip to content

Implement --snapshot-url - #33

Merged
tbidne merged 1 commit into
haskell:masterfrom
tbidne:snapshot-url
Oct 24, 2026
Merged

tbidne merged 1 commit into
haskell:masterfrom
tbidne:snapshot-url

Conversation

@tbidne

@tbidne tbidne commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator

Adds new --snapshot-url. There are two reasons for this.

  1. A minor advantage is that it is a slightly more convenient version of --snapshot-path, as we can simply run e.g. --snapshot-url nightly-2026-10-22 rather than manually downloading the file to use with --snapshot-path (the latter still works, to be clear).

  2. The primary motivation is to better signal to users the current snapshots' health.

    We occasionally run into issues (2-3x/month) where nightly is broken e.g. a new problematic package is pulled in, or a hackage revision breaks something. This is confusing for any unfortunate soul who happens to use clc-stackage before it is fixed, as their only recourse is to try to fix it themselves (if they even realized it is not their GHC's fault), or scan CI for a date that was green.

    With the new --snapshot-url, we can easily support two CI jobs: One that builds the latest nightly -- daily as usual -- and one that builds some fixed stable snapshot weekly. With this, users need only look at the README badges to see which snapshots are working, which hopefully makes usage a little smoother.

I also separated the normal build/tests CI from the snapshot builds, as we don't want an irrelevant test error to interfere with the snapshot status. For example, CI is currently red due to an unrelated macos action error (actions/runner-images#14940), even though the snapshot itself is currently fine.

Adds --snapshot-url for an easier alternative to --snapshot-path,
when all we want to do is pick a different snapshot.

We also add another ci job that builds stackage with some fixed
"stable" snapshot once a week. As the nightly snapshot runs into
problems a few times a month, this gives users a fallback "last known
good" snapshot use.
@tbidne
tbidne merged commit 3d96ba0 into haskell:master Oct 24, 2026
42 of 43 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