This repository was archived by the owner on Nov 5, 2026. It is now read-only.
Repository navigation
Conversation
This was referenced Aug 18, 2026
zanieb
pushed a commit
to astral-sh/hawk
that referenced
this pull request
Aug 18, 2026
The formatting job lets `npx` resolve a new version of `prettier` on each run. Record `[email protected]` in a private npm manifest and lockfile, disable dependency lifecycle scripts by default, and invoke the installed binary. Formatter updates now have a reviewable version and integrity change instead of happening implicitly during CI. Related: astral-sh/astral-tl#21 and astral-sh/trusted-publishing-examples#12 make the same locked-formatter change. astral-sh/uv#21193 covers uv's direct `prettier` invocations. Co-authored-by: zaniebot <[email protected]>
This was referenced Aug 18, 2026
zanieb
pushed a commit
to astral-sh/hawk
that referenced
this pull request
Aug 20, 2026
The formatter is locked, but new npm resolutions have no release-age policy or supported-client floor. Require `npm>=11.10.0` with `engine-strict`, wait seven days before selecting newly published packages, and pin Node.js to `24.19.0` in CI. Configure Renovate for the root formatter manifest and the formatter workflow's Node.js pin under the shared dependency policy, leaving unrelated GitHub Actions updates disabled. The locked Prettier version is unchanged. Follow-up to #161. Related: astral-sh/packse#324 and astral-sh/astral-tl#21 apply the same effective seven-day `npm` policy; astral-sh/uv#21193 combines it with locked formatter tooling. --------- Co-authored-by: zaniebot <[email protected]>
AlexWaygood
force-pushed
the
agent/lock-prettier
branch
from
October 21, 2026 21:07
6fd68b6 to
c2b8ff2
Compare
This branch has not been deployed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The formatting workflow installs
prettierglobally without a lockfile or lifecycle-script policy. Install the existing[email protected]from a committed npm lockfile with scripts disabled, and invoke the local binary. Requirenpm>=11.10.0throughengines.npmandengine-strictso older clients cannot silently ignore the seven-daymin-release-agepolicy for new resolutions, and pin Node.js to24.19.0in CI. Include the npm policy and manifests in the workflow's path filter so formatter dependency changes run the same formatting jobs. Configure Renovate for the root formatter manifest and the formatter workflow's Node.js pin under the shared dependency policy, leaving unrelated GitHub Actions updates disabled.Related: astral-sh/hawk#161 and astral-sh/uv-ecosystem-testing#1 make the same locked-formatter change. astral-sh/packse#322 applies the install-script policy to an existing lockfile.