File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -964,7 +964,7 @@ impl GeneratedSbom {
964964/// This must be run **after** `cargo metadata` which will generate the `Cargo.lock` file
965965/// and make sure it's up to date.
966966fn locate_cargo_lock ( manifest_path : & Path ) -> Result < PathBuf , std:: io:: Error > {
967- let manifest_path = manifest_path . canonicalize ( ) ?;
967+ let manifest_path = std :: path :: absolute ( manifest_path ) ?;
968968 let ancestors = manifest_path. as_path ( ) . ancestors ( ) ;
969969
970970 for path in ancestors {
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ fn setup_logging(args: &Args) -> anyhow::Result<()> {
119119
120120fn locate_manifest ( args : & Args ) -> Result < PathBuf , io:: Error > {
121121 if let Some ( manifest_path) = & args. manifest_path {
122- let manifest_path = manifest_path . canonicalize ( ) ?;
122+ let manifest_path = std :: path :: absolute ( manifest_path ) ?;
123123 log:: info!(
124124 "Using manually specified Cargo.toml manifest located at: {}" ,
125125 manifest_path. to_string_lossy( )
You can’t perform that action at this time.
0 commit comments