Test failure with rustup installation

How I reached this point

Installed JetBrains CLion with rust plugin for rust development. And upon opening a dummy project, I saw errors relating to a missing binary in the CLion problems popup. From this, I searched about it and on the quick start guide page it mention to install rustup (I installed rustc, cargo, rustfmt prior). Shortly after adding rustup to environment packages in configuration.nix and rebuilding the system, a series of tests occurred during the compilation and one failed: check_pgp_keys (source) (Installing rustup through nix-shell with a shell.nix script also, predictable, yields the same error).

My assessment

The error says that SHA1 is not secure but I do not know how to action that. I know it is possible to allow insecure packages, again I don’t know if this applies.

Error message

failures:

---- check_pgp_keys stdout ----
inprocess: true
status: Some(0)
----- stdout

----- stderr

inprocess: true
status: Some(0)
----- stdout

----- stderr
info: auto-self-update mode set to 'disable'

inprocess: true
status: Some(1)
----- stdout

----- stderr
error: No binding signature at time 2023-02-14T02:11:17Z: Policy rejected non-revocation signature (PositiveCertification) requiring second pre-image resistance: SHA1 is not considered secure since 2023-02-01T00:00:00Z


> rustup show keys
out.ok: false
out.stdout (0 lines):
    
out.stderr (1 lines):
    error: No binding signature at time 2023-02-14T02:11:17Z: Policy rejected non-revocation signature (PositiveCertification) requiring second pre-image resistance: SHA1 is not considered secure since 2023-02-01T00:00:00Z

expected.ok: true
expected.stderr.contains (0 lines):
    Fingerprint: 108F 6620 5EAE B0AA A8DD 5E1C 85AB 96E6 FA1B E5FE
thread 'check_pgp_keys' panicked at 'explicit panic', tests/mock/clitools.rs:363:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    check_pgp_keys

test result: FAILED. 79 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 36.97s

error: test failed, to rerun pass '--test cli-v2'

How do I address this issue so I can install rustup successfully?
If any more information that I haven’t provided is required, please ask.

Seems to be an upstream bug that was fixed in 1.25.2: Announcing Rustup 1.25.2 | Rust Blog

Something doesn’t sound quite right to me. With the version of rustup available on Nix being 1.25.2 which has the temp patch to allow the use of SHA1, it failing seems very weird. I will try switching to the unstable branch (even though the versions appear to be identical) and discuss results afterwards.

After switching to unstable, rustup installed without a hitch.