Quantcast
Channel: Programming – Gea-Suan Lin's BLOG
Viewing all articles
Browse latest Browse all 102

mise + cron 的組合問題

$
0
0

mise + cron 環境時會遇到「User's bash PATH doesn't seems to be updated in non-interactive session? #2382」這邊的問題,在 cron 跑起來的 shell script 裡面雖然有請 mise 初始化環境,但會發現應用程式沒有指到對應的地方。

目前的 workaround 是增加 --shims,這個指令是目前官方文件有直接一個章節列出來的,也許算是比較穩定的 workaround:「Shims」,裡面有提到:

mise activate --shims is a shorthand for adding the shims directory to PATH.

雖然是 workaround,但算是還可以接受的...


Viewing all articles
Browse latest Browse all 102