-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add document for customize mimic-cross #26
Conversation
WalkthroughThe recent update focuses on enhancing the customization process of Changes
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? TipsChatThere are 3 ways to chat with CodeRabbit:
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 as PR comments)
Additionally, you can add CodeRabbit Configration 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.
Review Status
Actionable comments generated: 5
Configuration used: CodeRabbit UI
Files selected for processing (2)
- README.md (1 hunks)
- doc/custom.md (1 hunks)
Additional comments: 1
doc/custom.md (1)
- 8-9: The relative paths provided for
builtin/recipes.ts
andbuiltin/supported.json
might not resolve correctly depending on where thecustom.md
document is located in relation to themimic-cross.deno/apt/builtin
directory. It's important to ensure that these links are functional and accessible from the document's location. If the document is hosted on a platform like GitHub, consider using absolute URLs to the repository files or verifying the relative paths based on the repository structure.
## Overview | ||
|
||
mimic-cross can add corresponding packages and override built-in implementations | ||
through the `/etc/mimic-cross/custom` directory.\ |
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.
The backslash at the end of line 6 seems to be a typo or formatting error. In Markdown, line breaks are typically created by leaving a blank line between paragraphs or by using two spaces at the end of a line. If the intention was to create a line break, consider adding two spaces at the end of the line instead.
- through the `/etc/mimic-cross/custom` directory.\
+ through the `/etc/mimic-cross/custom` directory.
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.
through the `/etc/mimic-cross/custom` directory.\ | |
through the `/etc/mimic-cross/custom` directory. |
doc/custom.md
Outdated
# How to customize mimic-cross for your environment | ||
|
||
## Overview | ||
|
||
mimic-cross can add corresponding packages and override built-in implementations | ||
through the `/etc/mimic-cross/custom` directory.\ | ||
You can refer to the default implementation | ||
[builtin/recipes.ts](../mimic-cross.deno/apt/builtin/recipes.ts) and | ||
[builtin/supported.json](../mimic-cross.deno/apt/builtin/supported.json) | ||
|
||
## supported.json | ||
|
||
Describe how to handle the apt package here.\ | ||
The default behavior is to search for elf executables referenced by $PATH from | ||
files installed with the specified package name, allowing for fast execution in | ||
the mimic-cross environment. | ||
|
||
## recipes.ts | ||
|
||
If special processing is required, describe the processing here and reference it | ||
from supported.json. | ||
|
||
### nameResolver | ||
|
||
Describes special processing for package names.\ | ||
This is useful when package names are different in TARGETPLATFORM and | ||
BUILDPLATFORM. | ||
|
||
### postInstall | ||
|
||
If special handling is required to deploy the package, it is described here. |
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.
Overall, the document provides a clear and structured guide for customizing mimic-cross
. However, it would benefit from more detailed examples or code snippets demonstrating how to add packages or override built-in implementations. Providing concrete examples can significantly enhance the document's utility by making the instructions more actionable for users.
Consider adding examples or code snippets that demonstrate how to add a new package or override a built-in implementation. This could include sample entries for supported.json
or a basic recipes.ts
modification.
## How to custom mimic-cross for your environment | ||
|
||
T.B.D. | ||
See [custom.md](doc/custom.md). |
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.
The addition of a reference to custom.md
in the README.md file effectively directs users to the new customization guide. This change aligns with the PR's objectives and enhances the documentation by providing users with a dedicated resource for customization. However, it would be beneficial to briefly summarize what users can expect to find in the custom.md
document to provide context and encourage them to consult the guide.
Consider adding a brief summary of what users can expect to find in the custom.md
document. This could include mentioning the ability to add packages, override built-in implementations, and utilize the /etc/mimic-cross/custom
directory for customizations.
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.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- doc/custom.md (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- doc/custom.md
Add document about How to customize mimic-cross for your environment
Summary by CodeRabbit
mimic-cross
for specific environments, including guidance on adding packages and overriding built-in implementations.custom.md
providing detailed guidance on customization.