Skip to content

option to not create .gitignore in dist/ folder when using uv build #16332

@CangyuanLi

Description

@CangyuanLi

Summary

While in general it is best practice to not commit build artifacts, unfortunately I am in a situation where I do actually want (or rather have to) commit my dist/ folder. However, when running uv build, a .gitignore is automatically created in the dist/ folder--it would be great to have a flag to disable this behavior.

Example

Maybe something like

uv build --no-gitignore

Metadata

Metadata

Assignees

Labels

enhancementNew feature or improvement to existing functionality

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions