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

fix: non-zero exit code for falsey version #262

Closed

Conversation

loozhengyuan
Copy link

Description:
This commit fixes an issue where an empty string input for the
'python-version' input parameter succeeds silently without installing
any versions.

Repro: https://github.com/loozhengyuan/setup-python/actions/runs/1381224564
Test: https://github.com/loozhengyuan/setup-python/actions/runs/1381214635

Related issue:
Fixes #241

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

This commit fixes an issue where an empty string input for the
'python-version' input parameter succeeds silently without installing
any versions.
@dmitry-shibanov
Copy link
Contributor

Hello @loozhengyuan. Thank you for your pull request. For now I'm going to close it because we added the warning. If the python-version input is not provided or it's an empty string and .python-version file does not contain any version the action will print a warning that system python is used.

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.

Zero exit with empty input for python-version
2 participants