1
0
Fork 0
mirror of https://github.com/NixOS/nix.dev.git synced 2024-10-18 14:32:43 -04:00
nix.dev/nix
Valentin Gagarin a3b5aad725 add a script to update Nixpkgs releases
this will accumulate releases over time. it's not great, but this is the
price of persistent URLs. otherwise, when people link to supposedly stable
URLs, and we garbage-collect old manuals, those links will rot away.

it's also slightly simpler algorithmically, and therefore easier to
reason about.

this can be incrementally improved in the future, by automatically
adding redirects to e.g. the closest following release for which the
manual is still served. for example, if we currently serve

    23.11
    23.05
    22.11
    22.05

but in the future decide to cut that list to the first two, the script
would drop the excess pins and add redirects like these:

    /manual/nixpkgs/22.05/* /manual/nixpkgs/23.05/:splat 301
    /manual/nixpkgs/22.11/* /manual/nixpkgs/23.05/:splat 301

the condition for that would be that we are reasonably sure that the
manuals will manage their own internal redirects as pages and anchors
move around between releases.
2024-04-03 09:21:26 +02:00
..
sources.json deep clone, optimise checkouts 2024-04-03 09:21:26 +02:00
sources.nix use "source" for niv source names 2023-11-07 03:06:11 +01:00
update-nix-releases.nix pin to known-good revision 2024-04-03 09:21:26 +02:00
update-nixpkgs-releases.nix add a script to update Nixpkgs releases 2024-04-03 09:21:26 +02:00