Nixos-21.05 channel not updating

Although https://status.nixos.org/ has indicated that the current
git hash for nixos-21.05 is 6bfe71f2a4e, a nix-channel update
still returns 110a2c9ebbf.

My nix-channel --list response is:

nixos https://nixos.org/channels/nixos-21.05

Following that url in a web browser brings a redirect to:

https://channels.nixos.org/nixos-21.05

Which seems to point to the older information.

However going to 'https://channels.nixos.org/` and following
the nixos-21.05 link brings me to:

https://channels.nixos.org/?prefix=nixos-21.05/

which has the newer info.

Is there some setup problem?

3 Likes

This smells like a bug…

I posted this message here because I was uncertain what github project was responsible for the the code that set up these links, or how the whole process works.
I finally submitted a bug to nixos-org-configurations. However nixos-homepage also sets up some links.

1 Like

The problem seems to be related to Fastly caching of web pages. There was a change by @zimbatm to reduce the TTL to 5 minutes, But I have not seen a significant improvement after several days.

Would this be better dealt with by a change in nix-channel.

It seems that currently nix-channel take urls like

https://nixos.org/channels/nixos-21.05

and parses the redirection response to get the git hash. Would it
be cleaner to do something like using the format:

channel:nixos-21.04

for formal Nix channels, and then get a Prometheus API call. I currently
do a:

https://status.nixos.org/prometheus/api/v1/query?query=channel_revision

to get channel hashes. This would also allow a new option:

nix-channel --list-active

to list all the currently active official Nix channels.