Skip to content

Commit

Permalink
Remove cd hack now that libcnb respect working-dir
Browse files Browse the repository at this point in the history
  • Loading branch information
runesoerensen committed Jun 14, 2024
1 parent f5a6f22 commit f2c6bac
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions buildpacks/dotnet/src/launch_process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,7 @@ fn get_executable_path(
}

fn build_launch_command(dotnet_project: &DotnetProject, executable_path: &Path) -> String {
let base_command = format!(
// TODO: We have to cd to the working directory (as libcnb.rs doesn't currently do it for us <https://github.com/heroku/libcnb.rs/pull/831>).
// Refactor this when libcnb.rs correctly sets the configured working directory.
"cd {}; {}",
executable_path
.parent()
.expect("Executable to have a parent directory")
.to_string_lossy(),
executable_path.to_string_lossy()
);
let base_command = format!("{}", executable_path.to_string_lossy());

let executable_name = executable_path
.file_name()
Expand Down

0 comments on commit f2c6bac

Please sign in to comment.