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

Cannot Exclude '.git' folder when vendoring top-level of git repo #408

Open
BronzeDeer opened this issue Jan 31, 2025 · 0 comments
Open
Labels
bug This issue describes a defect or unexpected behavior carvel-triage This issue has not yet been reviewed for validity

Comments

@BronzeDeer
Copy link

What steps did you take:
Vendor a repository from git with **/* or empty includePaths and excludePaths set to .git/.

What happened:
the .git folder was present in the vendored folder, causing git to detect a sub-project and storing metadata of the vendored project

What did you expect:
the .git folder not being copied to the vendored folder, hiding git metadata of the vendored repository

Anything else you would like to add:
I also tried various other combinations for specifing the git folder including postfixing with **/*, prefixing with the content path, omitting the trailing slash, prefixing with ./ etc

Environment:

  • vendir version (execute vendir --version): 0.43.0
  • OS (e.g. from /etc/os-release): Ubuntu 24.04.1 LTS

Vote on this request

This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.

👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"

We are also happy to receive and review Pull Requests if you want to help working on this issue.

@BronzeDeer BronzeDeer added bug This issue describes a defect or unexpected behavior carvel-triage This issue has not yet been reviewed for validity labels Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue describes a defect or unexpected behavior carvel-triage This issue has not yet been reviewed for validity
Projects
Status: No status
Development

No branches or pull requests

1 participant