Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent installation on Windows #2712

Merged
merged 1 commit into from Nov 22, 2022
Merged

Prevent installation on Windows #2712

merged 1 commit into from Nov 22, 2022

Conversation

ssbarnea
Copy link
Member

@ssbarnea ssbarnea commented Nov 22, 2022

In order to save time on platform that we know it will never work, we add an impossible dependency, named to hint the user about his mistake.

Any attempt to install the package using pip will give an error like below:

ERROR: Could not find a version that satisfies the requirement will-not-work-on-windows-try-from-wsl-instead; platform_system == "Windows" (from ansible-lint) (from versions: none)
ERROR: No matching distribution found for will-not-work-on-windows-try-from-wsl-instead; platform_system == "Windows"

This should be an improvement as it will prevent accidental installation of something that is never supposed to be run from Windows. Same issue was seen with ansible-core, which was possible to get installed under Windows.

In order to save time on platform that we know it will never work,
we add an impossible dependency, named to hint the user about his
mistake.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant