Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: Fix the function locations always pointing to master #226057

Merged
merged 1 commit into from
Apr 14, 2023

Conversation

infinisil
Copy link
Member

@infinisil infinisil commented Apr 13, 2023

Instead of revisions as they should. This is (most-likely) caused by a simple typo, because Hydra is where the revision should come from, but it doesn't set .revision as the attribute, but rather .rev! This comes from https://github.com/NixOS/hydra/blob/082495e34e094cae1eb49dbfc5648938e23c6355/src/script/hydra-eval-jobset#L300-L301

Fixes #223404

I can't actually verify this, but everything points to this being the problem, we'll have to check whether this worked when Hydra completes the next manual build.

This work is sponsored by Antithesis

Instead of revisions as they should. This is (most-likely) caused by a
simple typo, because Hydra is where the revision should come from, but
it doesn't set `.revision` as the attribute, but rather `.rev`!
Copy link
Member

@ncfavier ncfavier left a comment

Choose a reason for hiding this comment

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

because Hydra is where the revision should come from

Actually, the manual is built directly from the flake (nixpkgs#htmlDocs.nixpkgsManual): check out https://github.com/NixOS/nixos-homepage/blob/master/flake.nix#L137 (the inputs are updated hourly). But Nix indeed sets rev, not revision, so this fixes it.

Ideally we should probably point to the stable branch instead of the specific revision, which #203994 does, but I've lost all motivation to work on that.

@infinisil
Copy link
Member Author

Ah nice, thanks for the info! I also subscribed to that PR, though I don't have any time to look at it now.

I'll merge this PR

@infinisil infinisil merged commit 83c76b9 into NixOS:master Apr 14, 2023
@infinisil infinisil deleted the fix-function-location-revision branch April 14, 2023 15:17
@infinisil
Copy link
Member Author

Can confirm, this fixed #223404 :)

@asymmetric
Copy link
Contributor

@infinisil how did you confirm this fixes it? I can still see a link to master in the stable nixpkgs manual.

Is this fixed for unstable only, for now?

@github-actions
Copy link
Contributor

Successfully created backport PR for release-22.11:

@ncfavier
Copy link
Member

Should be fixed next time nixos-22.11 updates.

@infinisil
Copy link
Member Author

@asymmetric Yes it's only fixed in unstable, check out https://nixos.org/manual/nixpkgs/unstable/#sec-functions-library-asserts

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2023-04-20-documentation-team-meeting-notes-42/27470/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Links to nixpkgs functions' source is wrong
4 participants