Skip to content

Poor handling of extension unavailability for nightly releases #108

@joepie91

Description

@joepie91

Sometimes extensions are not available for a nightly release, such as regularly happens with rls. When this occurs, a package specification like this:

(nixpkgs.rustChannels.nightly.rust.override {
	extensions = [
		"rust-src"
		"rls-preview"
	];
})

... will outright fail to build, and break the entire rebuild of a system, with an error like this:

error: attribute 'xz_url' missing, at /nix/store/kcdh3m23dy3vxzlrwj3kwjg02616kgbd-source/rust-overlay.nix:100:31

Ideally it would then just fall back to the most recent nightly release that does have the specified extensions, so as to not break rebuilds nor make extensions magically vanish.

Perhaps the nightly Rust attribute implementation could be changed to do that, so that one doesn't have to manually track down a nightly version that has what they need?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions