Skip to content

Add all stable Pyrefly releases and use 1.5.1 in the examples - #6

Merged
kinto0 merged 1 commit into
kinto0/rules-1-ci-real-pyreflyfrom
kinto0/rules-2-pyrefly-versions
Dec 2, 2026
Merged

kinto0 merged 1 commit into
kinto0/rules-1-ci-real-pyreflyfrom
kinto0/rules-2-pyrefly-versions

Conversation

@kinto0

@kinto0 kinto0 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Stacked on #5.

Summary

  • What: Add the release checksums of every stable Pyrefly release from 1.2.0 to 1.5.1 to 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 in examples/demo, the README, the docs, and the verify_toolchain_resolution.py default.
  • Why: The ruleset only knows Pyrefly 1.2.0. To use any newer version today, a user must pass the SHA-256 of all six release assets to pyrefly.toolchain(sha256 = {...}).
  • Scope: Releases before 1.2.0 do not have bazel-check, so this PR leaves them out. Prereleases (-dev.N) also stay out; they still work through the sha256 path.

The bazel-check interface 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:

  • I downloaded all 54 assets (9 versions × 6 platforms). Each SHA-256 matches the release's published .sha256 file. 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 in darwin-sandbox.
  • python -m unittest discover -s tests -p "test_*.py": OK
  • python tests/verify_demo.py: pass
  • buildifier -mode=check -r .: clean
  • Real binary, in examples/demo. The resolved toolchain binary reports pyrefly 1.5.1.
    • bazel build --config=pyrefly --keep_going //...: pass, same diagnostics JSON as 1.2.0
    • bazel build --config=pyrefly //:type_error: same diagnostic as 1.2.0:
      ERROR `Literal['not an int']` is not assignable to `int` [bad-assignment]
        --> type_error.py:15:14
      

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
kinto0 added this pull request to stack #7 December 2, 2026 18:04
@meta-cla meta-cla Bot added the cla signed label Dec 2, 2026
@kinto0
kinto0 merged commit 2a11a55 into main Dec 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant