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

Escaped newlines in error message #2

Closed
ethomson opened this issue Jul 5, 2019 · 1 comment
Closed

Escaped newlines in error message #2

ethomson opened this issue Jul 5, 2019 · 1 comment
Assignees

Comments

@ethomson
Copy link
Contributor

ethomson commented Jul 5, 2019

I provided an invalid version and architecture to the setup-python action:

    - name: 'Select Python version'
      uses: actions/setup-python@master
      with:
        version: $PYTHON_VERSION
        architecture: $PYTHON_ARCH

(I was attempting to make variable expansion happen.) The error message was surprising, with what appear to be escaped \r and \n:

##[error]Version $PYTHON_VERSION with arch $PYTHON_ARCH not found%0D%0AAvailable versions:%0D%0A%0D%0A

I would expect either actual newlines or some other type of whitespace, not %0D%0A.

@konradpabjan
Copy link
Collaborator

Not seeing this error. I used environment variables to get the same type of error and this is happening:

image

We use pythons .join(os.EOL) so there shouldn't be any weird escape characters, see here:

].join(os.EOL)

Maybe there were some weird things going on with how env variables were being passed in when this was first created but I haven't been able to repo this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants