Repository navigation
Retire the Kimi mise wrapper the lazy-shim migration missed #16204
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
Open
yamz8
wants to merge
6
commits into
omacom:quattro
Choose a base branch
from
yamz8:fix/kimi-lazy-shim-wrapper
base: quattro
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+25
−0
Open
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
e8e6857
Retire the Kimi mise wrapper the lazy-shim migration missed
yamz8 5383759
Drop Kimi's latest request before its wrapper so a failed run retries
yamz8 34a1491
Merge quattro into fix/kimi-lazy-shim-wrapper
yamz8 94ed39b
Order the Kimi wrapper migration after quattro's newest
yamz8 14374e4
Leave Kimi to its guarded migration
yamz8 f96ad2e
Leave Kimi alone for a user who opted out of the declarations by hand
omarchybot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| echo "Replace the leftover Kimi mise wrapper with its lazy shim" | ||
|
|
||
| # 1791382872 retired every omarchy-mise-install wrapper except Kimi's, which | ||
| # 1786967403 installed. The wrapper shadows the lazy shim and writes a | ||
| # `latest` request into the user's config that outranks Omarchy's declaration. | ||
| # Migrations stop at the first failure, so 1791382872 has already created the | ||
| # shims. A user who removed the preinstalls lost the wrapper with them. | ||
| package="npm:@moonshot-ai/kimi-code" | ||
| wrapper="$HOME/.local/bin/kimi" | ||
|
|
||
| if [[ ! -f $HOME/.local/state/omarchy/preinstalls-removed ]]; then | ||
| # Only the exact wrapper omarchy-mise-install wrote, so a customized or | ||
| # user-owned launcher at the same path stays. | ||
| if [[ -f $wrapper && ! -L $wrapper ]] && | ||
| cmp -s "$wrapper" <(printf '#!/bin/bash\nexport MISE_MINIMUM_RELEASE_AGE=0\nmise use -g --quiet "%s" || exit 1\nexec mise x "%s" -- "kimi" "$@"\n' "$package" "$package"); then | ||
| # Drop only the request this wrapper wrote; without the wrapper, a latest | ||
| # request is the user's own. Keep the install for the declaration to reuse. | ||
| # Dropped before the wrapper goes, so a failed or interrupted run finds the | ||
| # wrapper again and retries instead of leaving the request behind. | ||
| mise unuse -g --no-prune "$package@latest" | ||
| rm -f "$wrapper" | ||
| fi | ||
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.