Skip to content

Fix plugin validation on Windows - #36

Open
delayed-byte wants to merge 1 commit into
petergyang:mainfrom
delayed-byte:fix/windows-plugin-validation
Open

Fix plugin validation on Windows#36
delayed-byte wants to merge 1 commit into
petergyang:mainfrom
delayed-byte:fix/windows-plugin-validation

Conversation

@delayed-byte

Copy link
Copy Markdown

Summary

  • use Path.as_posix() when validating staged plugin paths
  • type manifest parameters as Mapping[str, Any]

Why

Windows renders Path values with backslashes. The package validator compares those paths against expected entries containing forward slashes, causing valid Windows builds to fail validation.

The manifest parameters also used the unparameterized dict type, which triggered Pylance's reportMissingTypeArgument diagnostic.

Validation

  • python scripts/build_plugin.py --check
  • git diff --check (passes; Git reports the expected Windows line-ending notice)

Normalize staged package paths with Path.as_posix() so validation uses consistent separators across platforms. Add complete manifest type annotations to satisfy static type checking.
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