Skip to content

Commit

Permalink
fix: broken Cargo.toml (#125)
Browse files Browse the repository at this point in the history
*Issue #, if available:* N/A

*Description of changes:* When running `pavex new demo`, invalid
`Cargo.toml` files were generated for the main and server crates. This
change ensures the TOML generated is valid.


By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
  • Loading branch information
m1guelpf committed Dec 22, 2023
1 parent 43f5b10 commit f9f6d8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/pavex_cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,11 @@ fn scaffold_project(path: PathBuf) -> Result<ExitCode, Box<dyn std::error::Error

let pavex_package_spec = std::env::var("CARGO_GENERATE_VALUE_PAVEX_PACKAGE_SPEC")
.unwrap_or_else(|_| {
r#""https://github.com/LukeMathWalker/pavex", branch = "main""#.to_string()
r#"git = "https://github.com/LukeMathWalker/pavex", branch = "main""#.to_string()
});
let pavex_cli_client_package_spec =
std::env::var("CARGO_GENERATE_VALUE_PAVEX_CLI_CLIENT_PACKAGE_SPEC").unwrap_or_else(|_| {
r#""https://github.com/LukeMathWalker/pavex", branch = "main""#.to_string()
r#"git = "https://github.com/LukeMathWalker/pavex", branch = "main""#.to_string()
});

let generate_args = GenerateArgs {
Expand Down

0 comments on commit f9f6d8f

Please sign in to comment.