Skip to content

Commit

Permalink
fix: avoid special file name Cargo.toml in template directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ma2bd committed Jun 7, 2023
1 parent 1f0edfa commit 833b57b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions linera-service/src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ impl Project {
let (linera_sdk_dep, linera_sdk_dev_dep, linera_views_dep) =
Self::linera_sdk_dependencies();
let toml_contents = format!(
include_str!("../template/Cargo.toml"),
include_str!("../template/Cargo.toml.template"),
project_name = project_name,
linera_sdk_dep = linera_sdk_dep,
linera_sdk_dev_dep = linera_sdk_dev_dep,
Expand Down Expand Up @@ -181,7 +181,10 @@ impl Project {
let config_dir_path = project_root.join(".cargo");
let config_file_path = config_dir_path.join("config.toml");
std::fs::create_dir(&config_dir_path)?;
Self::write_string_to_file(&config_file_path, include_str!("../template/config.toml"))
Self::write_string_to_file(
&config_file_path,
include_str!("../template/config.toml.template"),
)
}

fn write_string_to_file(path: &Path, content: &str) -> Result<()> {
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 833b57b

Please sign in to comment.