Skip to content

Plugins are never discovered on Windows #313

Description

@peteski22

Problem

DiscoverExecutablesWithPaths treats a file as executable only when a POSIX execute bit is set. Windows has no execute bit and Go reports every regular file as 0666, so on Windows the plugin directory always appears empty. Every configured plugin fails validation with:

plugin <name> not found in directory <dir>

even though the binary is present.

Expected

On Windows, a file whose extension is listed in PATHEXT (default .COM;.EXE;.BAT;.CMD) should be treated as executable, the same rule the shell and exec.LookPath apply, and it should match the configured plugin name without the extension so name = "my-plugin" finds my-plugin.exe.

Notes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions