-
Notifications
You must be signed in to change notification settings - Fork 9
refactor(taskfiles)!: Rename NAME to CMAKE_PACKAGE_NAME and require it to be set if CMAKE_SETTINGS_DIR is set in utils:cmake:install (fixes #50).
#57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…s:cmake` by requiring explicit definition and checking it with a precondition.
|
""" WalkthroughThe changes unify the parameter naming by replacing Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant InstallTask
User->>InstallTask: Invoke install with parameters
alt CMAKE_SETTINGS_DIR is set
InstallTask->>InstallTask: Check CMAKE_PACKAGE_NAME is non-empty (precondition)
InstallTask-->>User: Error if CMAKE_PACKAGE_NAME is empty
else CMAKE_SETTINGS_DIR is not set
InstallTask->>InstallTask: Proceed without CMAKE_PACKAGE_NAME
end
InstallTask-->>User: Complete installation
Possibly related issues
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (10)
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 (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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(3 hunks)
🔇 Additional comments (2)
exports/taskfiles/utils/cmake.yaml (2)
110-110: Removal ofNAMEfrom required vars aligns with new optional behaviour.The prerequisite variables for
installno longer includeNAME, matching the conditional requirement introduced below. This change looks correct.
111-119: Conditional precondition enforcesNAMEwhenCMAKE_SETTINGS_DIRis set.The
preconditionsblock correctly checks that.NAMEis non-empty when.CMAKE_SETTINGS_DIRis provided. Consider trimming whitespace or validating the variable further if needed, but the current check is sound.
kirkrodrigues
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the PR title, how about:
refactor(taskfiles)!: Require `NAME` to be set if `CMAKE_SETTINGS_DIR` is set in `utils:cmake:install` (fixes #50).
CMAKE_SETTINGS_DIR behaviour in utils:cmake by requiring explicit definition and checking it with a precondition (fixes #50).NAME to be set if CMAKE_SETTINGS_DIR is set in utils:cmake:install (fixes #50).
kirkrodrigues
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the PR title, how about:
refactor(taskfiles)!: Rename `NAME` to `CMAKE_PACKAGE_NAME` and require it to be set if `CMAKE_SETTINGS_DIR` is set in `utils:cmake:install` (fixes #50).
NAME to be set if CMAKE_SETTINGS_DIR is set in utils:cmake:install (fixes #50).NAME to CMAKE_PACKAGE_NAME and require it to be set if CMAKE_SETTINGS_DIR is set in utils:cmake:install (fixes #50).
Description
As title says.
Additional minor changes:
NAMEis renamed toCMAKE_PACKAGE_NAMEto avoid issues with WSL where theNAMEenvironment variable is set by default.CMAKE_SETTINGS_DIRno longer has a default value inutils:cmake:install-remote-tarto ensure it is set explicitly and intentionally.Checklist
breaking change.
Validation performed
Tested locally with log-surgeon.
Summary by CodeRabbit
Summary by CodeRabbit
Documentation
NAMEtoCMAKE_PACKAGE_NAMEand clarify its requirement whenCMAKE_SETTINGS_DIRis set.New Features
CMAKE_PACKAGE_NAMEonly whenCMAKE_SETTINGS_DIRis specified.Chores