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

Can't use with GitHub actions #1586

Closed
Destaq opened this issue Aug 11, 2020 · 2 comments
Closed

Can't use with GitHub actions #1586

Destaq opened this issue Aug 11, 2020 · 2 comments
Labels
C: integrations Editor plugins and other integrations R: duplicate This issue or pull request already exists T: bug Something isn't working

Comments

@Destaq
Copy link

Destaq commented Aug 11, 2020

I followed the instructions in the README and generated a file named black.yml under .github/workflows/. However, when I pushed to master, an error occurred:

Could not find file '/home/runner/work/_actions/_temp_5819819e-a4d4-412a-8e33-e24210fc984b/_staging/psf-black-6bedb5c/docs/contributing_to_black.md'.

This means I am unable to use black for GitHub CI. Is there any solution to this?

@Destaq Destaq added the T: bug Something isn't working label Aug 11, 2020
@hugovk
Copy link
Contributor

hugovk commented Aug 11, 2020

This is a duplicate of #1520.

A workaround is to point to master (not advisable as it's a moving target), or better, pick a specific commit. See:

@ichard26 ichard26 added the R: duplicate This issue or pull request already exists label Aug 11, 2020
@ichard26
Copy link
Collaborator

Hi @Destaq.

So the problem here is that since stable, we have restructured the documentation and code which probably messed up with the paths. The solution to this issue is a new release which the stable branch tracks. There is currently an issue open for a new release: #1583. So unfortunately, you will be unable to use black stable for GitHub Actions until a new release is available. There is two immediate solutions, 1. use Black on master: psf/black@master, but I don't recommend that since it can be prone to instability, or 2. Use the newest commit that works: psf/black@fcf97961061982656a1384ecc1628e217a52a88c

Also, duplicate of #1520.

@ichard26 ichard26 added the C: integrations Editor plugins and other integrations label Aug 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: integrations Editor plugins and other integrations R: duplicate This issue or pull request already exists T: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants