-
Notifications
You must be signed in to change notification settings - Fork 52
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
fix: stop deletion of contents if directory paths overlap #325
Conversation
@fritzduchardt can you please add issue if there is any to this MR or add more description why you have added this code and what issue you have faced? |
f71e2b7
to
03a7488
Compare
Signed-off-by: Fritz Duchardt <fritz@duchardt.net>
03a7488
to
b559abf
Compare
Sure @kumaritanushree, I have linked the issue (and fixed the pipeline) |
@fritzduchardt for your use case can you please try this config:
What I know is vendir is designed to manage each directory separately. In your example you are telling vendir to manage the same directory “vendor” in 2 different directives. I think this should resolve your problem. And for better user experience I think we can add error with suggestion(if possible) for overlapping path. |
I feel that at the very least there should be an overlap warning. Still, let's consider supporting the vendir.yaml structure that I provided, since there is no factual overlap and it gives the user more flexibility. Let's discuss in the next community meeting. |
@fritzduchardt
Sure, we can discuss this in community, we will get more thoughts of people there and can decide accordingly. |
I bumped into a similar issue and proposed a fix in #343. I was sure that vendir didn't allow to have multiple directories with the same |
@fritzduchardt do you want to close this PR as we decided to not go with this approach and @Zebradil is already working on approach what we have decided in community in this PR |
/closes #323