Skip to content

Commit

Permalink
nix-eval-jobs: Strip quotes surrounding attribute names
Browse files Browse the repository at this point in the history
  • Loading branch information
whentze authored and zhaofengli committed Jun 2, 2022
1 parent 66d65b6 commit 6fe48cc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/nix/evaluator/nix_eval_jobs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}
Expand Down

0 comments on commit 6fe48cc

Please sign in to comment.