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

pixi init doesn't have a newline at the end of the file #214

Closed
pavelzw opened this issue Jul 13, 2023 · 2 comments · Fixed by #216
Closed

pixi init doesn't have a newline at the end of the file #214

pavelzw opened this issue Jul 13, 2023 · 2 comments · Fixed by #216

Comments

@pavelzw
Copy link
Contributor

pavelzw commented Jul 13, 2023

$ pixi init
[...]

pixi.toml:

[project]
...

[dependencies]
# no newline here at the end of the file
@baszalmstra
Copy link
Contributor

baszalmstra commented Jul 13, 2023

Nice find, this should be trivial to add in https://github.com/prefix-dev/pixi/blob/main/src/cli/init.rs#L93 . The template string does contain a newline at the end but apparently minijinja trims it.

The same goes for the .gitignore

Would you want to make a PR to add it?

@pavelzw
Copy link
Contributor Author

pavelzw commented Jul 13, 2023

Sure, I can do it today or tomorrow 👍🏻

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 a pull request may close this issue.

2 participants