Closed fitztrev closed 5 months ago
I actually hadn't seen that prompt yet. I think I was still using a cached image that had pnpm 9.1.0 so it didn't need to download a different version yet.
I looked into the docs and found the COREPACK_ENABLE_DOWNLOAD_PROMPT
env and it seems to work. Could you try it out and see if that's an option?
Nice find on that environment variable. Tested and working!
I came across this when trying to
./lila-docker format
today after receiving the following:I tested out the changes in this PR and they work, but unfortunately are adding additional prompts on
start
andformat
(as I'm sure you saw):An alternative (but certainly not ideal) approach could be to remove
RUN corepack enable
and addENV COREPACK_ENABLE_STRICT=0
beforeRUN npm install --global pnpm@9
in the two dockerfiles. This works as well, and continues without user prompt but does supply a warning:As mentioned, certainly not ideal but figured I'd some discussion to the PR for thought.