Skip to content

Commit

Permalink
Merge pull request #705 from NixOS/fix/macos-private
Browse files Browse the repository at this point in the history
Fix `Access to /private is forbidden in restricted mode`
  • Loading branch information
dasJ authored Feb 16, 2025
2 parents cbf0c61 + edae3c8 commit df400f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ofborg/src/checkout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ impl CachedProjectCo {

// let build_dir = self.build_dir();

Ok(self.clone_to().to_str().unwrap().to_string())
let canonicalized = fs::canonicalize(self.clone_to()).unwrap();
Ok(canonicalized.to_str().unwrap().to_string())
}

pub fn fetch_pr(&self, pr_id: u64) -> Result<(), Error> {
Expand Down

0 comments on commit df400f4

Please sign in to comment.