-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
'cargo new' and .gitignores #304
Comments
This is what I would expect, @wycats? |
Agreed fully. |
Please don't enforce bad practices (such as using Adding files to a A better solution would be simply do nothing instead of trying to second guess what a user might want, at least not until it is configurable. |
The opt-out is Not sure how defaults in a generator can be considered "forcing" anything on anyone. |
You're opting to creating junk files which are not related to the tool by default which is not configurable, I really dislike this behaviour and don't really consider it acceptable without it being optional. It also rubs me the wrong way when others make these choices based on what they believe to be "encouraging good habits" without any justification, merely what appears to be axiomatic to them. |
I have nothing against git, but I don't like the fact that Cargo creates a |
Note that git is turned off by default and you have to enable it with a |
The lockfile should only be checked in for bins, not libs. Closes rust-lang#304
The lockfile should only be checked in for bins, not libs. Closes #304
The lockfile should only be checked in for bins, not libs. Closes rust-lang#304
The lockfile should only be checked in for bins, not libs. Closes rust-lang#304
Now that we have
Cargo.lock
, we should take the opportunity to encourage good habits with regards to it and source control.Basically, what I'm imagining is that
cargo new
, when making a binary, should not add Cargo.lock to the ignore. And when making a library, should add it to the gitignore.What'cha think?
The text was updated successfully, but these errors were encountered: