Repository navigation
docs(setup): keep the old checker until the new copy works #1747
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: main
Are you sure you want to change the base?
Changes from all commits
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 |
|---|---|---|
|
|
@@ -416,6 +416,26 @@ Copy the files, not a link to them. | |
| same package, so a plain `cp -R` from it leaves a link in the personal | ||
| layer that points nowhere. | ||
| Copy from the skill's directory, or follow the link with `cp -RL`. | ||
| For marketplace installs, the source is | ||
| `<plugin-cache>/magpie-setup/<version>/skills/setup/setup_preflight`. | ||
| Check the new copy before replacing the old one: | ||
|
|
||
| ```bash | ||
| source_dir="<installed-skill-dir>/setup_preflight" | ||
| personal_dir="<personal_dir from setup_preflight.layers>" | ||
| target="$personal_dir/setup_preflight" | ||
|
|
||
| if [ -e "$target" ] || [ -L "$target" ]; then | ||
| temp="$(mktemp -d "$personal_dir/.preflight.XXXXXX")" || exit 1 | ||
| cp -RL "$source_dir" "$temp/setup_preflight" && | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On a marketplace install |
||
| PYTHONPATH="$temp" python3 -c 'import setup_preflight.cli' || | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please run the same check |
||
| { rm -rf "$temp"; exit 1; } | ||
| mv "$target" "$temp/old" || { rm -rf "$temp"; exit 1; } | ||
| mv "$temp/setup_preflight" "$target" || | ||
| { mv "$temp/old" "$target"; exit 1; } | ||
| rm -rf "$temp" | ||
| fi | ||
| ``` | ||
|
|
||
| The fresh copy also carries the new version's isolated-setup | ||
| fingerprint. When the secure-setup files changed in this upgrade, the | ||
|
|
||
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.
<plugin-cache>,<installed-skill-dir>and<personal_dir from …>are not used anywhere else; AGENTS.md asks not to invent placeholders. The section already names both directories in prose, so the snippet can refer to those.