Skip to content

Check and fix nix-manual redirect targets#14711

Merged
Ericson2314 merged 4 commits intoNixOS:masterfrom
roberth:check-redirect-targets
Dec 5, 2025
Merged

Check and fix nix-manual redirect targets#14711
Ericson2314 merged 4 commits intoNixOS:masterfrom
roberth:check-redirect-targets

Conversation

@roberth
Copy link
Member

@roberth roberth commented Dec 5, 2025

Motivation

The redirects weren't checked, so a lot of them were broken, see last commit.

Changes

  • Factor out redirects.json, reassembed at build time. Manually tested ✔️
  • Insert generated file with links to all redirect targets before running the link checker
  • Fix the redirect targets. Someone could do a 2% better job by doing more research, but they'd be wasting their time.

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@roberth roberth requested a review from edolstra as a code owner December 5, 2025 01:51
@roberth roberth added the tests label Dec 5, 2025
@roberth roberth force-pushed the check-redirect-targets branch 2 times, most recently from a9a7651 to 23503ef Compare December 5, 2025 12:47
@roberth roberth requested a review from Ericson2314 December 5, 2025 12:48
@Ericson2314
Copy link
Member

Shouldn't this be removing the old redirects file?

Augments the manual with a generated file before running the usual check.
Since it is apparently not deployed correctly on nix.dev, we can't
meaningfully work with it now.
Most of them were fixable.
The S3 ones were made available in c5ed22d.
@roberth roberth force-pushed the check-redirect-targets branch from 23503ef to c8601a2 Compare December 5, 2025 15:53
@roberth
Copy link
Member Author

roberth commented Dec 5, 2025

Shouldn't this be removing the old redirects file?

Whoops. Had my thoughts terminated by the clang-format json formatter apparently.

I've removed the file and tested a nix-manual redirect again ✔️

@Ericson2314 Ericson2314 added this pull request to the merge queue Dec 5, 2025
Merged via the queue into NixOS:master with commit 0db70b8 Dec 5, 2025
16 checks passed
@edolstra edolstra mentioned this pull request Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants