feat(clp-package): Write version string to VERSION in the package.#1334
Merged
Conversation
Contributor
WalkthroughAdds a step to the package task in taskfile.yaml to write the package version from environment variable G_PACKAGE_VERSION into {{.OUTPUT_DIR}}/VERSION after copying the Node.js version and before checksum generation. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Dev as Task Runner
participant Pkg as package task
participant FS as File System
Dev->>Pkg: Run package
Pkg->>FS: Copy Node.js version into output dir
note right of Pkg: New step
Pkg->>FS: Write VERSION file with G_PACKAGE_VERSION
Pkg->>FS: Compute checksums (includes VERSION)
Pkg-->>Dev: Packaging complete
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
LinZhihao-723
approved these changes
Sep 25, 2025
LinZhihao-723
left a comment
Member
There was a problem hiding this comment.
lgtm. For the PR title, shall we use feat(clp-package) or feat(package)? I saw both in our commit history and we should probably make it consistent.
VERSION in the pacakge.VERSION in the pacakge.
LinZhihao-723
added a commit
to LinZhihao-723/clp
that referenced
this pull request
Sep 26, 2025
…acakge. (y-scope#1334)" This reverts commit 173755f.
VERSION in the pacakge.VERSION in the package.
junhaoliao
added a commit
to junhaoliao/clp
that referenced
this pull request
May 17, 2026
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
This PR writes the version string to
build/clp-package/VERSION, which can be useful in future incident investigations.Checklist
breaking change.
Validation performed
taskand verified the version string specified atclp/taskfile.yaml
Line 36 in 761ec12
was correctly written to
build/clp-package/VERSION.Summary by CodeRabbit