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

Add --allow-dirty to command hint at end of init #1076

Merged
merged 1 commit into from
Jul 10, 2023
Merged

Add --allow-dirty to command hint at end of init #1076

merged 1 commit into from
Jul 10, 2023

Conversation

beyarkay
Copy link
Contributor

@beyarkay beyarkay commented Jul 9, 2023

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.

This PR is a bit of a nit-pick, so feel free to close!

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.
cargo-shuttle/src/lib.rs Show resolved Hide resolved
@beyarkay
Copy link
Contributor Author

Thanks!

@oddgrd oddgrd merged commit b36ce58 into shuttle-hq:main Jul 10, 2023
@beyarkay beyarkay deleted the allow-dirty branch July 10, 2023 10:10
AlphaKeks pushed a commit to AlphaKeks/shuttle that referenced this pull request Jul 21, 2023
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants