Skip to content

Commit

Permalink
fix: cargo publish fails without absolute paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Mar 16, 2022
1 parent 418c1eb commit 74226d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ fn create_compiler_snapshot(
);
op_crate_libs.insert("deno.net", "../ext/net/lib.deno_net.d.ts");
// ensure we invalidate the build properly.
let cli_dir = Path::new(env!("CARGO_MANIFEST_DIR"));
for (name, path) in op_crate_libs.iter() {
let path = std::fs::canonicalize(path)
let path = std::fs::canonicalize(cli_dir.join(path))
.map_err(|e| format!("{}: {}", path, e))
.unwrap();
println!(
Expand Down

0 comments on commit 74226d5

Please sign in to comment.