Skip to content

fix(plugin): create missing plugin directories instead of failing#67

Merged
tgiachi merged 1 commit into
developfrom
fix/plugin-directory-autocreate
Jul 6, 2026
Merged

fix(plugin): create missing plugin directories instead of failing#67
tgiachi merged 1 commit into
developfrom
fix/plugin-directory-autocreate

Conversation

@tgiachi

@tgiachi tgiachi commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Summary

UsePlugins(p => p.FromDirectory("plugins")) crashed with PluginLoadException when the directory did not exist yet (first boot of a host, e.g. Moongate's ~/.moongate/plugins). Plugin directories are now managed like the bootstrap's DirectoriesConfig entries: the resolved directory is created when missing and simply yields no plugins. Real scan failures (corrupt dll, instantiation) still fail fast. XML docs and README aligned.

Test plan

  • New test: UsePlugins_MissingDirectory_IsCreatedAndYieldsNoPlugins
  • SquidStd.Tests.Plugin filter 33/33 green; Release build clean

A directory passed to FromDirectory is now managed like the bootstrap's
DirectoriesConfig entries: created when missing and yielding no plugins,
instead of aborting startup with PluginLoadException. Docs aligned.
@tgiachi
tgiachi merged commit 6eef0dd into develop Jul 6, 2026
3 checks passed
@tgiachi
tgiachi deleted the fix/plugin-directory-autocreate branch July 6, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant