black: Github Action broken (unable to find version "stable")
I’m pretty sure this isn’t my fault, but our Github Action just started failing with the following message:
Error: Unable to resolve action
psf/black@stable, unable to find versionstable
You can see this happening here: https://github.com/freelawproject/eyecite/runs/2248542521?check_suite_focus=true.
I’m guessing that this is related to dropping the stable version or something like that, but I expect it will affect a lot of folks that use the action since the docs recommend configuring it this way.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 47
- Comments: 30 (1 by maintainers)
Commits related to this issue
- temporary fix for psf/black bug see https://github.com/psf/black/issues/2079 — committed to algobytewise/Python by algobytewise 3 years ago
- [mypy] Fix directory arithmetic_analysis (#4304) * fix directory arithmetic_analysis * Update build.yml * temporary fix for psf/black bug see https://github.com/psf/black/issues/2079 * Up... — committed to TheAlgorithms/Python by algobytewise 3 years ago
- temporary black fix; https://github.com/psf/black/issues/2079 — committed to pepkit/pipestat by stolarczyk 3 years ago
- Make block and unblock work with mentions/names — committed to JonathanFeenstra/discord-modlinkbot by JonathanFeenstra 3 years ago
- Add temp workaround for GH black branch The 'stable' branch on black repo has been removed. Add workaround to point to branch/rev to '20.8b1' until the issue is resolved. GH Issue: https://github.co... — committed to opendaylight/releng-builder by askb 3 years ago
- Temporary fix while issues with Black's release tags get resolved https://github.com/psf/black/issues/2079 — committed to bookwyrm-social/bookwyrm by mouse-reeve 3 years ago
- [ci] Fix pre-commit. https://github.com/psf/black/issues/2079 — committed to ufz/ogs by bilke 3 years ago
- Temporarily pin version of black action The Black team is preparing for a new release and - for currently unknown reasons - the stable branch of the GH action was deleted in the process. This brea... — committed to imageio/imageio by FirefoxMetzger 3 years ago
- discord: phrasing — committed to johnnyapol/RPICovidScraper by johnnyapol 3 years ago
- Temporary back fix: psf/black#2079 — committed to nutanix/calm-dsl by abhijeetkaurav1st 3 years ago
- temp black fix; https://github.com/psf/black/issues/2079 — committed to refgenie/refgenie by stolarczyk 3 years ago
- Update black.yaml Temporary fix until https://github.com/psf/black/issues/2079 is resolved — committed to Pure-Storage-Ansible/FlashBlade-Collection by sdodsley 3 years ago
- Temporary fix until psf/black#2079 is resolved — committed to io2-2021-wed-brodka/G_Backend by tomkarw 3 years ago
- Create workflow for testing PR branches (#3) * Create workflow for testing PR branches * Temporary fix until psf/black#2079 is resolved — committed to io2-2021-wed-brodka/G_Backend by tomkarw 3 years ago
- [FIX] Update workflow for black Temporary fix until https://github.com/psf/black/issues/2079 is resolved — committed to Pure-Storage-Ansible/FlashArray-Collection by sdodsley 3 years ago
- Implement workaround for broken upstream black The code formatter has an issue that is breaking our CI steps. This implements the workaround described here: https://github.com/psf/black/issues/2079#i... — committed to ntouran/armi by ntouran 3 years ago
- Temporarily pin version of black action (#620) The Black team is preparing for a new release and - for currently unknown reasons - the stable branch of the GH action was deleted in the process. Th... — committed to imageio/imageio by FirefoxMetzger 3 years ago
- Black Github Action is broken https://github.com/psf/black/issues/2079 — committed to oittaa/avif-converter by oittaa 3 years ago
- Black Github Action is broken (#32) https://github.com/psf/black/issues/2079 — committed to oittaa/avif-converter by oittaa 3 years ago
- Update to fix temporary problem with action https://github.com/psf/black/issues/2079 — committed to BlauGroup/mrnet by shyamd 3 years ago
We’re in the process of getting ready for a release so yeah? I haven’t been involved in this effort so I don’t know the details. Why would the stable branch be deleted? IDK, probably a mistake from the cleaning up they’ve been doing.
cc @ambv @cooperlees
@sdodsley The core team wants to bring it back ASAP, but no one who has the right perms has done it yet …
I don’t have write permissions or else I probably would’ve done it by now. I’m sorry.
@cubranic that may be so, but I do not want to keep having to check the black repo for new releases, that is why
stableis so useful.Reading the references a bit and reflecting on the repository:
So yeah, I agree that this should be reopened, and the stable branch should be introduced once more.
Just workarounds for those who wonder
Yeah, now there’s a stable tag pointing to the commit that ended up being the 20.8b1 version, but there’s no stable branch. So
psf/black@stablepretty much translates topsf/black@20.8b1. I’ll see if I can resolve this mess before the stable reference no longer points to the latest published version, no promises though.We’re experiencing the exact same issue @mlissner. Not isolated to you or your project. See https://github.com/folksgl/identity-give-usps/runs/2248887438?check_suite_focus=true
FWIW, force pushing a modified
stabletag breaks other tools such asvim-plug. See https://github.com/psf/black/issues/2503Thanks for explaining but I do happen to roughly know how pre-commit works and how bad the recommendation of
rev: stableis, I’d certainly accept a suggestion to at least get rid of references to stable for pre-commit (and GHA as well).It’s my understanding here that this issue is about GHA and the official black action we provide, not GHA + pre-commit configured to use black. Our recommendations of using black with pre-commit are problematic in its own way, but I’d argue it’s noise to the fact the official action is failing (I can open a new issue about pre-commit later). I’m sorry if I’m mistaken.
@felix-hilden @JelleZijlstra Actually using version
21.6b0results in the same error as i mentioned earlier.So it actually might be a problem with that specific version rather than the
@stabletag/branch which leads to the proper newest stable release.#2335
We have a stable branch again now.
Could you perhaps pin this issue, please? I’ve always used specific releases, so my spidey senses tingled when I saw a
stabletag suddenly appear without explanation and worried whether it was legit or package poisoning.