nix-eval-jobs: Strip quotes surrounding attribute names

Fixes #92.
This commit is contained in:
Wanja Hentze 2022-06-02 16:39:45 -07:00 committed by Zhaofeng Li
parent 66d65b67d8
commit 6fe48ccd04

View file

@ -185,7 +185,11 @@ impl Default for NixEvalJobs {
impl From<EvalLineDerivation> for AttributeOutput {
fn from(eld: EvalLineDerivation) -> Self {
Self {
attribute: eld.attribute,
// nix-eval-jobs adds surrounding quotes for attribute names
// with dots:
//
// <https://github.com/nix-community/nix-eval-jobs/commit/61c9f4cf>
attribute: eld.attribute.trim_matches('"').to_string(),
drv_path: eld.drv_path,
}
}