-
-
Notifications
You must be signed in to change notification settings - Fork 56
feat: implement Klipper repository migration to RatOS fork #92
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
base: development
Are you sure you want to change the base?
Changes from 14 commits
82b9f8a
9fdf7eb
0ee8fc4
79c5978
94a6bfd
2366f9b
3aa2a21
a13c0c5
19d24eb
873c05a
a08bcbc
8cda3cf
e2be0e3
9718010
9505fab
afe811c
ed5b4f1
0dd355d
8a6a394
33e8a67
c96cb9c
39b2431
c79bdb9
f0a85f8
178fe6f
71f767a
84a65a2
3068cbd
96ea2b9
e9b1950
f0024d6
cc4f7d8
70623c5
39e1997
d60c201
b921b93
0ccde04
3ffe6cc
936b35e
a35ca1b
cd8ebe0
e6e23c3
c95a8bc
84b7d8e
e6550f4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -180,11 +180,41 @@ Standardized error codes help identify common issues: | |
| - `EXTENSION_SYMLINK_FAILED`: Extension symlinking failed | ||
| - `OWNERSHIP_CHANGE_FAILED`: File ownership change failed | ||
|
|
||
| ### Klipper Migration Error Codes: | ||
| - `KLIPPER_DIR_NOT_FOUND`: Klipper directory not found | ||
| - `KLIPPER_NOT_GIT_REPO`: Klipper directory is not a git repository | ||
| - `KLIPPER_DIR_ACCESS_FAILED`: Cannot access Klipper directory | ||
| - `KLIPPER_STAGED_CHANGES`: Uncommitted staged changes prevent migration | ||
| - `KLIPPER_UNCOMMITTED_CHANGES`: Uncommitted changes prevent migration | ||
| - `KLIPPER_MIGRATION_FAILED`: General Klipper migration failure | ||
| - `GIT_REMOTE_URL_FAILED`: Failed to get git remote URL | ||
| - `GIT_REMOTE_ADD_FAILED`: Failed to add git remote | ||
| - `GIT_REMOTE_UPDATE_FAILED`: Failed to update git remote URL | ||
| - `GIT_FETCH_FAILED`: Failed to fetch from remote repository | ||
| - `GIT_FETCH_RETRY`: Fetch retry attempt | ||
| - `GIT_CHECKOUT_FAILED`: Failed to checkout branch | ||
| - `GIT_CHECKOUT_REMOTE_FAILED`: Failed to checkout remote branch | ||
| - `GIT_TEMP_BRANCH_FAILED`: Failed to create temporary branch | ||
| - `GIT_TEMP_BRANCH_CLEANUP`: Temporary branch cleanup operation | ||
| - `GIT_TEMP_BRANCH_CLEANUP_FAILED`: Failed to clean up temporary branch | ||
| - `GIT_COMMIT_NOT_FOUND`: Target commit not found | ||
| - `GIT_RESET_FAILED`: Failed to reset to target commit | ||
| - `GIT_UPSTREAM_SET_FAILED`: Failed to set upstream tracking | ||
| - `REMOTE_URL_MISMATCH`: Remote URL doesn't match expected value | ||
| - `REPOSITORY_CHECK_FAILED`: Repository check failed | ||
| - `REMOTE_SETUP_FAILED`: Remote setup failed | ||
| - `FETCH_FAILED`: Fetch operation failed | ||
| - `CHECKOUT_FAILED`: Checkout operation failed | ||
| - `RESET_FAILED`: Reset operation failed | ||
| - `OWNERSHIP_FAILED`: Ownership fix failed | ||
|
|
||
|
||
| ### System Error Codes: | ||
| - `FILE_NOT_FOUND`: Required file not found | ||
| - `PERMISSION_DENIED`: Insufficient permissions | ||
| - `NETWORK_ERROR`: Network connectivity issue | ||
| - `DISK_FULL`: Insufficient disk space | ||
| - `ENV_VAR_MISSING`: Required environment variable not set | ||
| - `ENV_VAR_MISSING`: Required environment variable not set | ||
|
|
||
| ## Error Handling and Retry Logic | ||
|
|
||
|
|
||
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.
Align error code naming between script and documentation
The docs list both
KLIPPER_MIGRATION_FAILEDandMIGRATION_FAILED, but the migration script only emitsMIGRATION_FAILEDin the final error log. Standardize on one code—preferablyKLIPPER_MIGRATION_FAILEDto match other Klipper-specific codes—and update the script or documentation accordingly.🤖 Prompt for AI Agents