DEV: Only mount top-level plugin symlinks

DEV: Only mount top-level plugin symlinks

Sometimes plugins directories will end up with other symlinks (e.g. inside node_modules folders). This logic does not work with deeply nested symlinks, and they are unlikely to be necessary for the plugin to work. Therefore we should only look for symlinks in the top-level of the plugins directory

diff --git a/bin/docker/boot_dev b/bin/docker/boot_dev
index 596e03f..948c08a 100755
--- a/bin/docker/boot_dev
+++ b/bin/docker/boot_dev
@@ -66,7 +66,7 @@ echo "Using data in:   ${DATA_DIR}"
 mkdir -p "${DATA_DIR}"
 
 mount_plugin_symlinks=""
-for symlink in $(find $PLUGINS_DIR -type l); do
+for symlink in $(find $PLUGINS_DIR -depth 1 -type l); do
     # `readlink -f` doesn't work on macOS, to fix it you need to override the `readlink` with `greadlink`
     # > brew install coreutils
     # > ln -s "$(which greadlink)" "$(dirname "$(which greadlink)")/readlink"

GitHub sha: ab234121

This commit appears in #13117 which was approved by CvX. It was merged by davidtaylorhq.