Skip to content

Commit

Permalink
[FIX] issue leptos-rs#358 cargo leptos build fails, forgot to uncomme…
Browse files Browse the repository at this point in the history
…nt for testing
  • Loading branch information
Holger Trahe committed Sep 1, 2024
1 parent a1c3193 commit e165a88
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/config/bin_package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,13 @@ impl BinPackage {
// Check if the file exists and if not, try to prepend target_triple
// right now it mail fail to find target/debug/name
// but the build is successful and in target/"target_triple"/debug/name
// if !test_file.exists(){
// test_file = Utf8PathBuf::from(format!(
// "target/{}/{}/{}",
// CURRENT_PLATFORM, profile.to_string(),test_file.file_name().unwrap()
// ));
// }
// https://github.com/leptos-rs/cargo-leptos/issues/358
if !test_file.exists(){
test_file = Utf8PathBuf::from(format!(
"target/{}/{}/{}",
CURRENT_PLATFORM, profile.to_string(),test_file.file_name().unwrap()
));
}
test_file
};

Expand Down

0 comments on commit e165a88

Please sign in to comment.