Skip to content

Provide access to commit hash of a toolchain #144

@Nemo157

Description

@Nemo157

I would like to setup remapping of rust toolchain's CI paths to the local rust-src component, something similar to

rust-toolchain = pkgs.rust-bin.selectLatestNightlyWith (toolchain:
  toolchain.default.override {
    extensions = ["rust-src"];
  }
);

"--remap-path-prefix=/rustc/${rust-toolchain.commit}=/${rust-toolchain}/lib/rustlib/src/rust"

But afaict there's no way to access the commit hash of a selected toolchain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions