Skip to content

servegit: eval symlinks on root

Warren Gifford requested to merge k/symlink into main

Created by: keegancsmith

This is a useful use case which allows changing your root by updating a symlink. Additionally it is convenient. We have to explicitly resolve the symlink since filepath.Walk does not support resolving symlinks. We resolve the symlink each time we crawl so the user can update the value of the symlink at runtime. Note: we still ignore symlinks with the repos directory. Supporting that would be more complex due to symlink cycles.

Fixes https://github.com/sourcegraph/src-cli/issues/453

Merge request reports

Loading