mirror of
https://github.com/mark3labs/kit.git
synced 2026-06-14 03:30:26 +00:00
8b7be8b735
deriveExtensionName was using the full directory path (e.g. examples/extensions/kit-telegram) to derive the display name for main.go extensions, producing verbose names like 'Examples Extensions Kit Telegram Extension'. Now uses filepath.Base(dir) so only the immediate parent directory is used, giving 'Kit Telegram Extension'. Also fix TestLoadExtensions_SkipsBadFiles which was flaky when globally-installed git packages existed — isolate the test from the host environment by overriding XDG_CONFIG_HOME, XDG_DATA_HOME, and the working directory.