Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use cargo generate instead of hardcoding examples source code #888

Merged
merged 14 commits into from
Jun 9, 2023
Merged
Prev Previous commit
Next Next commit
fix: apparently we need to use auto_path instead of subfolder.
  • Loading branch information
paulotten committed Jun 7, 2023
commit 07dbbf20d3c6b6b42b547a13a836cd01d36bc8f8
2 changes: 1 addition & 1 deletion cargo-shuttle/src/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ pub fn cargo_generate(path: PathBuf, name: &ProjectName, framework: Template) ->
init: true,
template_path: TemplatePath {
git: Some(config.get_repo_url().to_string()),
subfolder: config.get_sub_path().map(str::to_string),
auto_path: config.get_sub_path().map(str::to_string),
..Default::default()
},
name: Some(name.to_string()),
Expand Down