We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9399cd6 commit 6355ceaCopy full SHA for 6355cea
config/config.go
@@ -206,6 +206,11 @@ func FromViper(v *viper.Viper) (*Config, error) {
206
return nil, fmt.Errorf("failed to get absolute path for tree root: %w", err)
207
}
208
209
+ // resolve symlinks in tree root
210
+ if cfg.TreeRoot, err = filepath.EvalSymlinks(cfg.TreeRoot); err != nil {
211
+ return nil, fmt.Errorf("tree root %s not found: %w", cfg.TreeRoot, err)
212
+ }
213
+
214
// prefer top level excludes, falling back to global.excludes for backwards compatibility
215
if len(cfg.Excludes) == 0 {
216
cfg.Excludes = cfg.Global.Excludes
0 commit comments