Closed ZenVoich closed 2 months ago
[!IMPORTANT]
Review skipped
Draft detected.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yaml
file in this repository. To trigger a single review, invoke the@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
The changes enhance the mops
command-line interface by adding functionality for dependency conflict management, including a new --conflicts <action>
option for several commands. The caching mechanism is improved with better modularity, and the documentation is updated to reflect these features. Additionally, new test cases validate compatibility across library versions, while package metadata is refined to include new dependencies and updated versions.
File(s) | Change Summary |
---|---|
cli/CHANGELOG.md |
Updated to reflect enhancements in mops cache clean , conflict reporting in commands, and new options. |
cli/cache.ts |
Added getGlobalCacheDir function; updated existing cache functions to improve modularity and error handling. |
cli/cli.ts , cli/commands/add.ts , cli/commands/sources.ts , cli/resolve-packages.ts |
Introduced --conflicts <action> option for handling dependency conflicts and updated relevant functions to use this new parameter. |
docs/docs/cli/7-misc/04-mops-sources.md |
Added documentation for the --conflicts <action> option and its possible values. |
test/.deep/aa/mops.toml , test/.staging-conflict/mops.toml |
Updated package metadata, dependencies, and versions. |
test/.staging-conflict/test/simple.test.mo |
New test validating behavior of different versions of the Nat module. |
sequenceDiagram
participant User
participant CLI
participant Resolver
User->>CLI: mops add package --conflicts warning
CLI->>Resolver: resolvePackages({conflicts: 'warning'})
Resolver->>Resolver: Check for conflicts
Resolver-->>CLI: Return conflict warnings
CLI-->>User: Display warnings or proceed based on action
🐇 In the land of code where rabbits hop,
New features bloom, and conflicts stop!
With caching and commands all in tune,
Dependency woes vanish like the moon.
In this mops garden, we dance with cheer,
As packages play nice, we have nothing to fear! 🌼✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
mops cache clean
command to clean the local cache.mops add
,mops install
, andmops sources
commands.--conflicts <action>
option for themops sources
command to specify conflict handling.--conflicts <action>
option for dependency management.