0c5fd835ce
configs/configload and internal/initwd both had a copyDir function that would fail if the source directory contained a symlinked directory, because the os.FileMode.IsDir() returns false for symlinks. This PR adds a check for a symlink and copies that symlink in the target directory. It handles symlinks for both files and directories (with included tests). Fixes #20539 |
||
---|---|---|
.. | ||
test-fixtures | ||
copy_dir.go | ||
copy_dir_test.go | ||
doc.go | ||
from_module.go | ||
from_module_test.go | ||
getter.go | ||
inode.go | ||
inode_freebsd.go | ||
inode_windows.go | ||
load_config.go | ||
module_install.go | ||
module_install_hooks.go | ||
module_install_test.go | ||
testing.go | ||
version_required.go |