Thanks to visit codestin.com
Credit goes to github.com

Skip to content

PyPy's resolvedPyPyVersion has a trailing newline #609

Closed
@kurtmckee

Description

@kurtmckee

Description:
While working on #606 I discovered that PyPy's resolvedPyPyVersion contains a trailing newline, which causes the pythonVersion (passed to cacheDependencies) to look like 7.3.11\n-3.9.16.

Action version:
I'm running code against the main branch. The bug only exists on Ubuntu and macOS runners. The Windows runner does not have the trailing newline.

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
PyPy 7.3.11 with Python 3.9.16

Repro steps:
You can see the issue in the output of the "Installed versions" output group. I've created a repo to demonstrate the issue with a simple workflow:

https://github.com/kurtmckee/demonstrate-pypy-newlines/actions/runs/4151696169/jobs/7182162044

Expected behavior:
I expect that the resolvedPyPyVersion variable will not have a trailing newline.

Actual behavior:
resolvedPyPyVersion has a trailing newline, and this can be seen in the "Installed versions" output group's text:

On Ubuntu and macOS:

  Successfully set up PyPy 7.3.11
   with Python (3.9.16)

On Windows:

  Successfully set up PyPy 7.3.11 with Python (3.9.16)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions