syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.69k stars 4.89k forks source link

Spacemacs scans whole home directory for layers when it is current pwd #12643

Closed greboide closed 3 years ago

greboide commented 5 years ago

Description :octocat:

Spacemacs scans whole home directory for layers when it is current pwd

Reproduction guide :beetle:

Observed behaviour: :eyes: :broken_heart: if there is a directory that spacemacs doesnt have permission to scan on my home directory spacemacs brakes...

Expected behaviour: :heart: :smile: it shouldnt scan it in the first place

System Info :computer:

Backtrace :paw_prints:

I found the culprit to be dotspacemacs-configuration-layer-path being set as "" and that was triggering the search path on current pwd on the function configuration-layer/discover-layers

syl20bnr commented 5 years ago

This is not the default value and the documentation for this variable is:

   ;; List of additional paths where to look for configuration layers.
   ;; Paths must have a trailing slash (i.e. `~/.mycontribs/')
   dotspacemacs-configuration-layer-path '()
github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!