Skip to content

Commit

Permalink
fix(ci): Actually create the result symlink!
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Jan 28, 2025
1 parent cab9f66 commit c644025
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions crates/nix_rs/src/flake/functions/addstringcontext/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,20 @@ pub async fn addstringcontext(
let jsonfile_name = jsonfile.file_name().unwrap().to_string_lossy();
let pwd = Some(jsonfile_parent);

let current_pwd = std::env::current_dir()?;

let input = AddStringContextInput {
jsonfile: FlakeUrl(format!("path:{}", jsonfile_name)),
};
let (path_with_string_context, _json_value) =
AddStringContextFn::call(cmd, false, IMPURE, pwd, Some(out_link), vec![], input).await?;
let (path_with_string_context, _json_value) = AddStringContextFn::call(
cmd,
false,
IMPURE,
pwd,
Some(&current_pwd.join(out_link)),
vec![],
input,
)
.await?;
Ok(path_with_string_context)
}

0 comments on commit c644025

Please sign in to comment.