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

Error about missing .python-version file #1369

Closed
ferki opened this issue Dec 12, 2022 · 4 comments
Closed

Error about missing .python-version file #1369

ferki opened this issue Dec 12, 2022 · 4 comments

Comments

@ferki
Copy link

ferki commented Dec 12, 2022

My workflows using shogo82148/actions-setup-perl@v1 started to fail today with the following error message:

Error: ENOENT: no such file or directory, open '/home/runner/work/Rex/Rex/.python-version'

Based on quick grepping of the codebase, it is probably related to this line, which was recently added to v1.20.0 as part of .perl-version file support via #1367.

My first instinct was to send a pull request to replace the.python-version filename with .perl-version. I'm afraid it would still result in a similar error when there is no perl-version option, and the repo does not have a .perl-version file (previously it was defaulting to 5).

Therefore I decided to open an issue instead, and learn more about how it would be best to address.

@shogo82148
Copy link
Owner

Thank you for your report!
I'll fix it.

shogo82148 added a commit that referenced this issue Dec 12, 2022
* fix the default value of the perl-version-file input

* fallback to the default version 5

* npm run format
@ferki
Copy link
Author

ferki commented Dec 12, 2022

I see v1.20.1 is already building now, thank you for the quick fix, @shogo82148! 🙇

@shogo82148
Copy link
Owner

@ferki
Copy link
Author

ferki commented Dec 12, 2022

Looks working again, thanks! 👍

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

No branches or pull requests

2 participants