Skip to content

plugin: Windows local paths (C:\..., .\x.yaml) are treated as registry names #997

Closed

Description

@scttfrdmn

Found by the new Windows CI job (#971): TestRunPluginInspect_ResolvesLocalFile failed on windows-latest.

plugin.ParseRef recognises a local plugin file only by the prefixes ./, ../ and /. A Windows path such as C:\Users\me\demo.yaml or .\demo.yaml falls through to the official-registry branch, so spawn plugin inspect / install on a Windows controller looks the file name up in spore-host/spore-plugins over the network and fails with "has no published releases in spore-host/spore-plugins". A Windows user cannot use a local plugin file at all, and the test made a live GitHub API call from CI.

Fix: also treat filepath.IsAbs(ref) and the OS-separator forms of ./ and ../ as local.

Activity

  1. added 4 commits that reference this issue on Oct 15, 2026
    1e43510
    53edd37
    5d2e28e
    5f1cd6b
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions