Skip to content

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

Closed

Description

@jonashaag

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

Activity

  1. wolfv commented on Sep 18, 2023

    @wolfv
    Member

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

  2. added a commit that references this issue on Sep 28, 2023
    e7807bc
  3. ruben-arts commented on Sep 28, 2023

    @ruben-arts
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions