carvel-dev / carvel-dev/vendir

vendir capable of sync'ing files to its current-working-directory

Open
#116 0 comments 1 reaction 0 assignees View on GitHub
carvel-accepted enhancement
Dominant language
Go
Stars
399
Forks
73
Avg merge
2h 53m
Merged PRs (30d)
2

Description

**Describe the problem/challenge you have**
[A description of the current challenge that you are experiencing.]
i want to compose together a single repo using bits from other repos.

Among those other bits are top-level files like .pre-commit-config.yaml, .tflint, .isort, etc

**Describe the solution you'd like**
[A clear and concise description of what you want to happen. If applicable a visual representation of the UX.]
When I read the spec of vendir, intuitively it seems like vendir would support this.

for instance,

```
directories:
- path: .
contents:
- path: README
git:
url: git@github.com:org/repo.git
ref: c26b9b
includePaths:
- README.md
```

However, when I provide it such a config, I get the following.

```
Error: Parsing resource config 'vendir.yml': Unmarshaling config: Validating config:
Validating directory '.' (1): Expected path to not be one of '/', '.', '..', ''
```

I think the current assumption for the feature-set of the product is that vendir assumes control of everything in its CWD, so supporting something like this would cause it to stomp on existing files or something.

**Anything else you would like to add:**
[Additional information that will assist in solving the issue.]

---
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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.