From 4f5c08fa6e1254dab7dc35732ca757ff2bc4008e Mon Sep 17 00:00:00 2001 From: Gabe M Date: Wed, 22 Jul 2026 20:13:13 -0600 Subject: [PATCH] fix: put mise lazy installed tools last --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1cde551..596404e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -108,7 +108,11 @@ FROM runtime ARG OPENCODE_VERSION ARG IMAGE_CREATED -ENV PATH=/opt/mise/shims:/home/opencode/.local/bin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/opencode/.local/share/zerobrew/prefix/bin:/opt/auto-install-shims:${PATH} +# mise/auto-install shims go LAST: they are "tool not installed" fallbacks that +# exec `mise exec `, so anything explicitly installed into a real bin dir +# (~/.local/bin, Homebrew, zerobrew, or /usr/local/bin via the base ${PATH}) +# MUST win over the shim. +ENV PATH=/home/opencode/.local/bin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/opencode/.local/share/zerobrew/prefix/bin:${PATH}:/opt/mise/shims:/opt/auto-install-shims ENV HOMEBREW_NO_AUTO_UPDATE=1 ENV HOMEBREW_INSTALL_FROM_API=1 ENV MISE_DATA_DIR=/opt/mise