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 .gitignore file to .pixi/env/myenv #343

Closed
jonashaag opened this issue Sep 18, 2023 · 2 comments · Fixed by #359
Closed

Add .gitignore file to .pixi/env/myenv #343

jonashaag opened this issue Sep 18, 2023 · 2 comments · Fixed by #359
Labels
✨ enhancement Feature request

Comments

@jonashaag
Copy link

Problem description

Currently .gitignore seems not to be changed if it already exists. I think that's a reasonable choice.

We could add a .gitignore file to the env like in python/cpython#108125

@jonashaag jonashaag added the ✨ enhancement Feature request label Sep 18, 2023
@wolfv
Copy link
Member

wolfv commented Sep 18, 2023

Thanks for the note, I think that's a very good idea.

@ruben-arts
Copy link
Contributor

Its automatically closed, but i would like to give a little more background:

  • Its not adding the ignore file to the environment as it would be pretty invasive to do this every time you run any pixi command. As you can't do it on pixi init because it will only be done for the initial author of the package and not if you clone the package.
  • The possibility to avoid the addition would be hard to configure in a user friendly way.
  • This is not a important feature of pixi, its a helper feature that we want to support with a limited impact on the project.

The create or append functionality is the simplest and most user friendly that we want to add right now.

I hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement Feature request
Projects
None yet
3 participants