Repository navigation
docs: fix DEVKIT_COMMIT_APP_ENVIRONMENT guard quoting claim - #1740
Merged
Merged
Conversation
The guard comment above the DEVKIT_COMMIT_APP_ENVIRONMENT validation guard claimed the value is rendered as an UNQUOTED YAML scalar, "exactly as for DEVKIT_SYNC_TARGET above". render_commit_app_environment() actually emits `environment: '<name>'` single-quoted, unconditionally, precisely because the allowed charset admits YAML 1.1 bool/number shapes that an unquoted scalar would let YAML mistype. Reword the comment to state the single-quoting, keep the charset allowlist as load-bearing (it refuses `'`, so no escaping is ever needed), and make the quoting difference from DEVKIT_SYNC_TARGET's mixed quoted/unquoted splices explicit instead of implying the two behave alike. No other content of the comment changes. Comment-only change with no rendered byte difference, so TDD is skipped per CLAUDE.md's carve-out for non-testable constructs; verified instead by confirming `git diff` touches only comment lines and by running the existing tests/test_commit_app_environment.py suite (48 passed) unchanged. Refs: #1738
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.
Description
Fixes a factually wrong guard comment above the
DEVKIT_COMMIT_APP_ENVIRONMENTvalidation guard in
assets/init-workspace.sh(around line 515). The commentclaimed the value is rendered as an unquoted YAML scalar, "exactly as for
DEVKIT_SYNC_TARGETabove".render_commit_app_environment()(around line2351, unchanged by this PR) actually emits
environment: '<name>'—single-quoted, unconditionally — precisely because the allowed charset
admits YAML 1.1 bool/number shapes (
true/noparse as booleans,0755asthe integer 493,
1e3as a float), and an unquoted scalar would hand GitHub anon-string
environmentit rejects at dispatch, a failureactionlintdoesnot catch.
Type of Change
docs-- Documentation onlyModifiers
!)Changes Made
Reworded the guard comment only, in
assets/init-workspace.sh:(
environment: '<name>'), not unquoted.it refuses
', so the quoted splice never needs escaping.DEVKIT_SYNC_TARGETbut makes the quotingdifference explicit (mixed quoted/unquoted splices there) instead of
implying the two keys behave alike.
case-insensitive constraint, the "pure
.vig-oskey, no CLI flag, so only aformat guard" note, and the
#1710reference.No code changed —
git diff -- assets/init-workspace.shtouches only#comment lines.
render_commit_app_environment()and the validation guard'sifbody are untouched, so this is a byte-identical render for every existingconsumer.
Changelog Entry
No changelog needed. This is a comment-only change with no rendered byte
difference and no consumer-visible effect (confirmed by diff + the existing
render test suite passing unchanged), so it carries no user-visible impact per
CLAUDE.md's changelog scoping rule.Testing
uv run pytest tests/test_commit_app_environment.py -v -s --tb=short— 48 passed)prek run --all-files— green, no findingsgit diff -- assets/init-workspace.shreviewed by hand: only commentlines change; the guard's code and
render_commit_app_environment()areuntouched
Manual Testing Details
N/A — no CLI-visible or rendered behavior to exercise manually; verification is
the diff review + the existing automated render-test suite above.
Checklist
the surrounding column width and tone)
docs/templates/content is affected
CHANGELOG.md-- intentionally skipped, see ChangelogEntry above
CLAUDE.md's carve-out for non-testable constructs (a comment has noobservable behavior to pin); verified instead by running the existing
tests/test_commit_app_environment.pysuite unchanged (48 passed) and byhand-confirming the diff is comment-only
Additional Notes
This cannot ride the release-neutral lane:
assets/init-workspace.shis bakedinto
devkitImage, so even a comment-only edit moves that derivation's pathand gate 2 will refuse it. It needs a normal release train to reach
main.Refs: #1738