-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 init makes .gitignore without trailing newline #6846
Labels
C-bug
Category: bug
Comments
I can take a look at this. |
Looks like the patch is merged into the 1.35.0 branch (the newline test is present) and I can confirm that with the current cargo beta ( |
Thanks! |
Thanks for the investigation @fluffysquirrels ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
The initial
.gitignore
created bycargo init
does not end in a newline. This makes it annoying to append lines to it from the command line or via a text editor.Steps
cargo init --bin
in an empty directory.Examine the resulting
.gitignore
.Possible Solution
Add a newline.
Notes
Output of
cargo version
:Debian Linux x86-64
The text was updated successfully, but these errors were encountered: