From 2835617d7027bd88c99f047784afbe2a33d8fa94 Mon Sep 17 00:00:00 2001 From: Lennart Kats Date: Sat, 24 Aug 2024 10:41:43 +0200 Subject: [PATCH] Add comment --- bundle/config/mutator/process_target_mode.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bundle/config/mutator/process_target_mode.go b/bundle/config/mutator/process_target_mode.go index c6c46add..70382f05 100644 --- a/bundle/config/mutator/process_target_mode.go +++ b/bundle/config/mutator/process_target_mode.go @@ -106,6 +106,8 @@ func validateDevelopmentMode(b *bundle.Bundle) diag.Diagnostics { return diags } +// findNonUserPath finds the first workspace path such as root_path that doesn't +// contain the current username or current user's shortname. func findNonUserPath(b *bundle.Bundle) string { containsName := func(path string) bool { username := b.Config.Workspace.CurrentUser.UserName