Handle mise monorepo_root rename for Immich

Updated both Immich setup scripts (`ct/immich.sh` and `install/immich-install.sh`) to patch `mise.toml` before running `mise //:plugins`. The change ensures `monorepo_root = true` is present while retaining `experimental_monorepo_root = true`, so plugin builds work across old and new mise versions after the v2026.7.0 key rename.
This commit is contained in:
MickLesk
2026-07-02 23:06:42 +02:00
parent d610a35b34
commit 52168aac12
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -205,6 +205,8 @@ EOF
cd "$SRC_DIR"
export MISE_TRUSTED_CONFIG_PATHS="$SRC_DIR"/mise.toml
export MISE_DISABLE_TOOLS=github:jellyfin/jellyfin-ffmpeg
# mise v2026.7.0 renamed 'experimental_monorepo_root' to 'monorepo_root'; ensure both are set so the //:plugins task works regardless of mise version
grep -q '^monorepo_root = true' "$SRC_DIR"/mise.toml || sed -i 's/^experimental_monorepo_root = true/monorepo_root = true\nexperimental_monorepo_root = true/' "$SRC_DIR"/mise.toml
$STD mise //:plugins
mkdir -p "$PLUGIN_DIR"
cp -r ./packages/plugin-core/dist "$PLUGIN_DIR"/dist
+2
View File
@@ -350,6 +350,8 @@ cp LICENSE "$APP_DIR"
cd "$SRC_DIR"
export MISE_TRUSTED_CONFIG_PATHS="$SRC_DIR"/mise.toml
export MISE_DISABLE_TOOLS=github:jellyfin/jellyfin-ffmpeg
# mise v2026.7.0 renamed 'experimental_monorepo_root' to 'monorepo_root'; ensure both are set so the //:plugins task works regardless of mise version
grep -q '^monorepo_root = true' "$SRC_DIR"/mise.toml || sed -i 's/^experimental_monorepo_root = true/monorepo_root = true\nexperimental_monorepo_root = true/' "$SRC_DIR"/mise.toml
$STD mise //:plugins
mkdir -p "$PLUGIN_DIR"
cp -r ./packages/plugin-core/dist "$PLUGIN_DIR"/dist