fix(taskfiles)!: Remove quotes when evaluating EXTRA_ARGS in CMake tasks, properly treating them as command flags. - #66
Conversation
EXTRA_ARGS in cmake:install
WalkthroughThe update adds a new Changes
Possibly related PRs
Suggested reviewers
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
davidlion
left a comment
There was a problem hiding this comment.
Let's handle components the same way targets is handled in generate (https://github.com/y-scope/yscope-dev-utils/blob/main/exports/taskfiles/utils/cmake.yaml#L27-L41).
|
It doesn't seem like CMake supports passing multiple --components arguments in install. |
There was a problem hiding this comment.
Actionable comments posted: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (1)
exports/taskfiles/utils/cmake.yaml(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: unit-tests (ubuntu-24.04)
- GitHub Check: unit-tests (ubuntu-22.04)
🔇 Additional comments (1)
exports/taskfiles/utils/cmake.yaml (1)
127-127: Verify conditional--componentinjection
Double-check that the folded>-block preserves spacing/newlines correctly when.COMPONENTis set or empty. Test the rendered command to ensure--componentisn’t concatenated or omitted unexpectedly.
| COMPONENT: >- | ||
| {{default "" .COMPONENT}} |
There was a problem hiding this comment.
🧹 Nitpick (assertive)
Sync documentation for new COMPONENT variable
The newly added COMPONENT var isn’t reflected in the install task’s @param block. Please add an entry like @param {string} [COMPONENT] to the comment header to keep docs accurate.
🤖 Prompt for AI Agents
In exports/taskfiles/utils/cmake.yaml around lines 110 to 111, the new COMPONENT
variable is missing from the install task's @param documentation block. Add a
line `@param {string} [COMPONENT]` to the comment header of the install task to
document this new variable and keep the documentation accurate and up to date.
|
Sorry, I forgot to request review again. Pretty sure the unit tests failing is a temporary internet problem, since they worked locally. |
Description
An empty string passed in EXTRA_ARGS throws an error in the previous version. This is undesirable for conditional extra arguments passed to cmake:install.
Checklist
breaking change.
Validation performed
Ran linters and tests.
Summary by CodeRabbit