Skip to content

Commit

Permalink
Add --allow-dirty to command hint at end of init (shuttle-hq#1076)
Browse files Browse the repository at this point in the history
This commit modifies the command hint `cargo shuttle deploy` that
appears at the end of `cargo shuttle init` so that it includes the
`--allow-dirty` flag.

Without this flag, `cargo shuttle` will fail every time a newbie tries
to init a new project because shuttle adds files to the project but
doesn't commit them to git. Shuttle then notices that there are
uncommitted files, and doesn't allow the newbie to deploy the project
without specifically allowing the dirty files. This is a bit of a bad
experience, because the newbie is just following instructions but also
being told that those instructions were wrong.
  • Loading branch information
beyarkay authored and AlphaKeks committed Jul 21, 2023
1 parent e0952be commit 305a228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cargo-shuttle/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,7 @@ impl Shuttle {
client,
)
.await?;
println!("Run `cargo shuttle deploy` to deploy your Shuttle service.");
println!("Run `cargo shuttle deploy --allow-dirty` to deploy your Shuttle service.");

Ok(())
}
Expand Down

0 comments on commit 305a228

Please sign in to comment.