Skip to content

Update gitignore logic to catch more cases#2695

Merged
jvstme merged 5 commits intodstackai:masterfrom
colinjc:cc/update-gitignore-to-catch-more-cases
May 28, 2025
Merged

Update gitignore logic to catch more cases#2695
jvstme merged 5 commits intodstackai:masterfrom
colinjc:cc/update-gitignore-to-catch-more-cases

Conversation

@colinjc
Copy link
Copy Markdown
Contributor

@colinjc colinjc commented May 26, 2025

Existing implementation was missing support for a ** which was pretty critical. This updates the logic to use an existing library which already supports **.

Comment thread pyproject.toml Outdated
Comment thread src/dstack/_internal/core/models/repos/local.py Outdated
@colinjc colinjc requested a review from r4victor May 26, 2025 20:24
@r4victor r4victor requested a review from jvstme May 27, 2025 07:56
Comment thread src/dstack/_internal/utils/ignore.py Outdated
Comment thread src/dstack/_internal/utils/ignore.py Outdated
Comment thread src/tests/_internal/utils/test_ignore.py Outdated
Comment thread src/dstack/_internal/utils/ignore.py Outdated
Comment thread src/dstack/_internal/utils/ignore.py Outdated
@colinjc colinjc force-pushed the cc/update-gitignore-to-catch-more-cases branch from 5d78c2b to 108bd86 Compare May 28, 2025 13:36
Copy link
Copy Markdown
Collaborator

@jvstme jvstme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@colinjc, thanks for the PR. Replacing our gitignore implementation with a more mature one is a good idea.

The latest commit was building malformed unpackable archives, but I fixed it with a couple of edits. Will merge now, thank you

@jvstme jvstme merged commit 5d57e19 into dstackai:master May 28, 2025
25 checks passed
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 this pull request may close these issues.

3 participants