Repository navigation
Conversation
The checked-in release metadata only includes Pyrefly 1.2.0. To use a newer Pyrefly, users must pass the SHA-256 of every release asset to pyrefly.toolchain(sha256 = ...). Add the checksums of every stable release from 1.2.1 to 1.5.1 to pyrefly/private/versions.bzl. Pyrefly 1.2.0 is the first stable release with bazel-check, so older releases are not useful here. Prereleases stay on the sha256 path. Use 1.5.1 in the demo, the README, the docs, and the toolchain resolution test.
kinto0
force-pushed
the
bump-pyrefly-1.5.1
branch
from
December 2, 2026 17:49
7a931fe to
fde1ef4
Compare
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pyrefly/private/versions.bzl: 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.3.2, 1.4.0, 1.4.1, 1.5.0, 1.5.1. Use 1.5.1 inexamples/demo, the README, the docs, and theverify_toolchain_resolution.pydefault.pyrefly.toolchain(sha256 = {...}).bazel-check, so this PR leaves them out. Prereleases (-dev.N) also stay out; they still work through thesha256path.The
bazel-checkinterface did not change between 1.2.0 and 1.5.1, so the rules need no change.Test plan
macOS arm64, Bazel 9.2.0:
.sha256file. The regenerated 1.2.0 entry is identical to the existing one.python tests/verify_toolchain_resolution.py --output-group=pyrefly --pyrefly-version=<v>: passes for each of the 9 versions, with the real binary running indarwin-sandbox.python -m unittest discover -s tests -p "test_*.py": OKpython tests/verify_demo.py: passbuildifier -mode=check -r .: cleanexamples/demo. The resolved toolchain binary reportspyrefly 1.5.1.bazel build --config=pyrefly --keep_going //...: pass, same diagnostics JSON as 1.2.0bazel build --config=pyrefly //:type_error: same diagnostic as 1.2.0: