-
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
Symlinks aren't properly copied #57
Comments
This issue is being marked as stale due to a long period of inactivity and will be closed in 5 days if there is no response. |
I'm still reproducing the problem with vendir version 0.42.0 See reproduction repo at https://github.com/gberche-orange/renovate-repro-vendir-symlinks @cppforlife Any chance to reopen this issue ? |
The problem here is that the includePaths are processed before we check for symlinks (which we can argue if it makes sense or not).
Not sure, @Zebradil any idea/suggestion? |
Sorry, I somehow missed this thread. I'm not sure either, to be honest. In the current state, the configuration from the starter post produces the following error (together with non-zero exit code):
Vendir creates the target directory with files (and the broken symlinks) in it, but it doesn't create the lock file. This is definitely a bug: it should either finish successfully with warnings or keep the target directory as is. My proposal is:
|
I agree with your proposal 1. |
I'll prepare a PR for the first point, then.
Means to create actual files instead of symlinks pointing to them.
we'd have just
which is copied as is from
I thought that maybe it makes sense to separate handling of the following situations:
At first, I thought that the We can think of a configuration option to allow symlink destinations to allow users to encode |
What steps did you take:
vendir sync
with this config:What happened:
config/upstream/serving/config/core/300-imagecache.yaml
is an invalid symlink, pointing to a file that doesn't exist.What did you expect:
I'm not 100% sure, probably it should collapse the symlink into a regular file with the contents of the file it pointed to. Maybe this needs to be configurable.
Anything else you would like to add:
I looked into this a little and found it was broken in the library that vendir depends on: otiai10/copy#32
Environment:
vendir --version
): 0.16.0/etc/os-release
): ubuntu focalThe text was updated successfully, but these errors were encountered: