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

Trim trailing space from discovered Python versions. #663

Closed
wants to merge 1 commit into from

Commits on May 9, 2023

  1. Trim trailing space from discovered Python versions.

    The setup-python action failed because my .python-version (generated from a recent pyenv) had a trailing newline (not sure if this is a bug in pyenv, but I'll look there next). 
    
    ```
    Installed versions
      Version 3.11.3
       was not found in the local cache
      Error: The version '3.11.3
      ' with architecture 'x64' was not found for Ubuntu 18.04.
      The list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
    ```
    
    As you can see, the version was not discovered because the newline didn't match exactly. The way I figure, even if this is user error, stripping trailing space is super easy, and will probably prevent some problems.
    apg committed May 9, 2023
    Configuration menu
    Copy the full SHA
    d14c82c View commit details
    Browse the repository at this point in the history